Skip to content

@graphty/graphty-element / index / NotePatch

Interface: NotePatch ​

Defined in: graphty-element/src/session/notes/types.ts:119

A field left out is unchanged. null clears an optional field; cites: [] clears the cites.

Properties ​

cites? ​

readonly optional cites?: readonly object[]

Defined in: graphty-element/src/session/notes/types.ts:125

The new cites; [] clears them. A cite left unchanged keeps its run.


done? ​

readonly optional done?: boolean

Defined in: graphty-element/src/session/notes/types.ts:134

True marks the note done, stamping the time; a note already done keeps its time. False clears it.


extensions? ​

readonly optional extensions?: Readonly<Record<string, unknown>> | null

Defined in: graphty-element/src/session/notes/types.ts:132

The new extensions, replacing the old ones; null clears them.


mediaType? ​

readonly optional mediaType?: string | null

Defined in: graphty-element/src/session/notes/types.ts:130

The new media type; null clears it.


targets? ​

readonly optional targets?: readonly NoteTargetInput[]

Defined in: graphty-element/src/session/notes/types.ts:123

The new targets, replacing the old ones.


text? ​

readonly optional text?: string

Defined in: graphty-element/src/session/notes/types.ts:121

The new text.