tuil
ReferencePackages@mwillbanks/tuil-storyAPI

StorySnapshot

interface exported by @mwillbanks/tuil-story.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-story.

export interface StorySnapshot {
  readonly storyId: string;
  readonly variant: string;
  readonly frame: string;
  readonly ansiFrame: string;
  readonly semantics: readonly QueryableSemanticNode[];
  readonly focus: StoryFrame["focus"];
  readonly controls: TerminalStoryControls;
}

Members

MemberTypeRequiredDescriptionRelated types
storyIdstringYesThe storyId member uses the string contract.
variantstringYesThe variant member uses the string contract.
framestringYesThe frame member uses the string contract.
ansiFramestringYesThe ansiFrame member uses the string contract.
semanticsreadonly QueryableSemanticNode[]YesThe semantics member uses the readonly QueryableSemanticNode[] contract.QueryableSemanticNode
focus{ readonly focusedId?: string; readonly nodes: readonly { readonly id: string; readonly label?: string; readonly role?: string; }[]; }YesThe focus member uses the { readonly focusedId?: string; readonly nodes: readonly { readonly id: string; readonly label?: string; readonly role?: string; }[]; } contract.
controlsTerminalStoryControlsYesThe controls member uses the TerminalStoryControls contract.TerminalStoryControls

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-story

On this page