UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

20 lines 718 B
import type { SlateTextValue } from '../text/index.js'; import type { NodeType } from './constants.js'; import type { BaseNode, BaseStep, DataID, NodeNextID, StepCanvasNodeVisibility } from './utils/index.js'; export interface TextData extends DataID { content: SlateTextValue; /** @deprecated use TextTracePayload.delay instead */ messageDelayMilliseconds?: number; } export interface StepData extends StepCanvasNodeVisibility { texts: TextData[]; } export interface Step<Data = StepData> extends BaseStep<Data> { type: NodeType.TEXT; } export interface Node extends BaseNode, NodeNextID { type: NodeType.TEXT; texts: TextData[]; platform?: string; } //# sourceMappingURL=text.d.ts.map