Skip to content

context-id

Typed context identifiers for persisting non-serializable values across evalInObsidian calls.

Class Description
ContextId A typed context identifier for persisting non-serializable values across evalInObsidian calls. The context is a persistent object stored on window in the Obsidian process. All calls sharing the same ContextId share the same context object, allowing non-serializable values (e.g. TFile, Editor) to survive across calls. Implements AsyncDisposable for use with await using.
Interface Description
ContextArguments Wraps a ContextOf extraction into an object with a context property.
Type Description
ContextOf Extracts the context type from a ContextId.