UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

20 lines 690 B
import type { Nullable } from '@voiceflow/common'; import type { NodeType } from './constants'; import type { BaseNode, BaseStep, NodeNextID, NodeVariablesMappings } from './utils'; export type VariableMapping = [Nullable<string>, Nullable<string>][]; export interface StepData { diagramID: Nullable<string>; variableMap: Nullable<{ inputs: VariableMapping; outputs: VariableMapping; }>; } export interface Step<Data = StepData> extends BaseStep<Data> { type: NodeType.FLOW; } export interface Node extends BaseNode, NodeNextID { type: NodeType.FLOW; diagram_id?: string; variable_map?: NodeVariablesMappings; } //# sourceMappingURL=flow.d.ts.map