ExternalSnapshotStore
interface exported by @mwillbanks/tuil-ink.
interface
Public interface exported by @mwillbanks/tuil-ink.
export interface ExternalSnapshotStore<TSnapshot> {
subscribe(observer: () => void): () => void;
snapshot(): TSnapshot;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
subscribe | (observer: () => void) => () => void | Yes | The subscribe member uses the (observer: () => void) => () => void contract. | — |
snapshot | () => TSnapshot | Yes | The snapshot member uses the () => TSnapshot contract. | — |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
No package-local related types.
Source
View the secondary source reference