tuil
ReferencePackages@mwillbanks/tuil-streamingAPI

DocumentNode

interface exported by @mwillbanks/tuil-streaming.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-streaming.

export interface DocumentNode {
  readonly type: string;
  readonly value?: unknown;
  readonly raw?: string;
  readonly span?: SourceSpan;
  readonly attributes?: Readonly<Record<string, unknown>>;
  readonly children?: readonly DocumentNode[];
}

Members

MemberTypeRequiredDescriptionRelated types
typestringYesThe type member uses the string contract.
valueunknownNoThe value member uses the unknown contract.
rawstring | undefinedNoThe raw member uses the string | undefined contract.
spanSourceSpan | undefinedNoThe span member uses the SourceSpan | undefined contract.SourceSpan
attributesReadonly<Record<string, unknown>> | undefinedNoThe attributes member uses the Readonly<Record<string, unknown>> | undefined contract.
childrenreadonly DocumentNode[] | undefinedNoThe children member uses the readonly DocumentNode[] | undefined contract.DocumentNode

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-streaming

On this page