UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

26 lines 769 B
import type { Nullable } from '@voiceflow/common'; import type { NodeType } from './constants'; import type { BaseNode, BaseStep, ExpressionTypeV2, NodeNextID } from './utils'; export interface Set { type: ExpressionTypeV2.VALUE | ExpressionTypeV2.ADVANCE; variable: Nullable<string>; expression: string; label: Nullable<string>; } export interface StepData { sets: Set[]; title?: string; } export interface NodeSet { variable: Nullable<string>; expression: string | number; label: Nullable<string>; } export interface Step<Data = StepData> extends BaseStep<Data> { type: NodeType.SET_V2; } export interface Node extends BaseNode, NodeNextID { type: NodeType.SET_V2; sets: NodeSet[]; } //# sourceMappingURL=setV2.d.ts.map