UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

29 lines 875 B
import type { NodePath } from './_v1.js'; import type { NodeType } from './constants.js'; import type { BaseNode, BaseStep, BaseStepPorts, BuiltInNoMatchPort, ExpressionData, NodeElseID } from './utils/index.js'; export declare enum IfNoMatchType { PATH = "path", NONE = "none" } export interface IfNoMatch { type: IfNoMatchType; pathName?: string; } export interface StepData { expressions: ExpressionData[]; noMatch?: IfNoMatch; } export interface StepPorts extends BaseStepPorts<BuiltInNoMatchPort> { } export interface Step<Data = StepData> extends BaseStep<Data, StepPorts> { type: NodeType.IF_V2; } export interface NodePayload extends NodeElseID { expressions: (string | number)[]; } export interface Node extends BaseNode { type: NodeType.IF_V2; paths: NodePath[]; payload: NodePayload; } //# sourceMappingURL=ifV2.d.ts.map