UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

56 lines 1.37 kB
import type { Nullable } from '@voiceflow/common'; import type { NodeID } from './base'; export declare enum NoMatchType { PATH = "path", REPROMPT = "reprompt", /** @deprecated */ BOTH = "both" } export interface BaseStepNoMatch { types?: NoMatchType[]; pathName?: string; randomize: boolean; /** * @deprecated use types instead */ type?: Nullable<NoMatchType>; } export interface StepNoMatch<Prompt> extends BaseStepNoMatch { reprompts: Prompt[]; } export interface BaseNoMatchStepData { noMatch?: Nullable<BaseStepNoMatch>; } export interface BaseNodeNoMatch { nodeID?: NodeID; randomize?: boolean; } export interface BaseNoMatchNodeData { noMatch?: Nullable<BaseNodeNoMatch>; } export interface NodeNoMatch<NoMatch> extends BaseNodeNoMatch { prompts?: NoMatch[]; } /** * @deprecated use BaseNodeNoMatch instead */ export interface DeprecatedBaseNodeNoMatch { /** * @deprecated use noMatch.elseId instead */ elseId?: NodeID; /** * @deprecated use noMatch.randomize instead */ randomize?: boolean; } /** * @deprecated use NodeNoMatch instead */ export interface DeprecatedNodeNoMatch<NoMatch> extends DeprecatedBaseNodeNoMatch { /** * @deprecated use noMatch.noMatches instead */ noMatches?: NoMatch[]; } //# sourceMappingURL=noMatch.d.ts.map