UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

22 lines 736 B
import type { Nullable } from '@voiceflow/common'; import type { NodeType } from './constants'; import type { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils'; export interface StepData extends SlotMappings { name: string; intent: Nullable<string>; diagramID: Nullable<string>; } export interface Step<Data = StepData> extends BaseStep<Data> { type: NodeType.COMMAND; } /** * The old implementation of commands, used only in alexa and google * use Node.Utils.AnyCommand for other platforms */ export interface Command extends BaseCommand, Required<SlotMappings> { type: CommandType.PUSH; next?: NodeID; intent: string; diagram_id?: string; } //# sourceMappingURL=push.d.ts.map