Skip to content

@graphty/graphty-element / index / NoteInput

Interface: NoteInput ​

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

What notes.add takes. id, time, author and edited are graphty-element's to stamp. A new note is never done; mark it with update.

Properties ​

cites? ​

readonly optional cites?: readonly object[]

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

Results the claim rests on. Each cite is pinned to the result's current finished run.


extensions? ​

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

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

Plain JSON under reverse-domain keys, at most 32 levels deep and 64 KB saved.


mediaType? ​

readonly optional mediaType?: string

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

type/subtype, optionally with parameters in visible ASCII; at most 255 characters.


targets ​

readonly targets: readonly NoteTargetInput[]

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

What the note is about: one to 64.


text ​

readonly text: string

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

Plain text, stored exactly as given; not blank, at most 65,536 characters.