Pro tip:notes<T>().get(subject) returns a NotepadAdapter to make accessing the APIs
of the underlying type easier. Check NotepadAdapter for more examples.
Working with untyped notes
You can use notes<T>() without parameterising it with an interface
describing the structure of your notes.
Note: this approach is not type-safe and the type-safe alternative presented below should be used in most cases.
Alias for
Notepad.notes.Pro tip:
notes<T>().get(subject)returns aNotepadAdapterto make accessing the APIs of the underlying type easier. CheckNotepadAdapterfor more examples.Working with untyped notes
You can use
notes<T>()without parameterising it with an interface describing the structure of your notes.Note: this approach is not type-safe and the type-safe alternative presented below should be used in most cases.
Working with typed notes
The recommended way to use
notes<T>()is to parameterise it with an interface describing the structure of your notes.Note: this approach is type-safe.
Checking if a note is present
Working with complex data structures
Learn more
NotepadAdapterNotepad.notesQuestionAdapter