@voiceflow/base-types
Version:
Voiceflow base project types
29 lines • 860 B
TypeScript
import type { NodePath } from './_v1';
import type { NodeType } from './constants';
import type { BaseNode, BaseStep, BaseStepPorts, BuiltInNoMatchPort, ExpressionData, NodeElseID } from './utils';
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