tuil
ReferencePackages@mwillbanks/tuil-inkAPI

ExternalSnapshotStore

interface exported by @mwillbanks/tuil-ink.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-ink.

export interface ExternalSnapshotStore<TSnapshot> {
  subscribe(observer: () => void): () => void;
  snapshot(): TSnapshot;
}

Members

MemberTypeRequiredDescriptionRelated types
subscribe(observer: () => void) => () => voidYesThe subscribe member uses the (observer: () => void) => () => void contract.
snapshot() => TSnapshotYesThe 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.

No package-local related types.

Source

View the secondary source reference

Package

@mwillbanks/tuil-ink

On this page