@corux/ask-extensions
Version:
Extensions to improve development with Alexa Skills Kit SDK
9 lines (8 loc) • 675 B
TypeScript
import { Request } from "ask-sdk-model";
import { BaseRequestHandler } from "./BaseRequestHandler";
/** Marks this request handler to be used as fallback. */
export declare function Fallback(): <T extends BaseRequestHandler>(target: new (...args: any[]) => T) => void;
/** Marks this request handler to support the given intents. */
export declare function Intents(...intents: string[]): <T extends BaseRequestHandler>(target: new (...args: any[]) => T) => void;
/** Marks this request handler to support the given request types. */
export declare function Request(...types: Array<Request["type"]>): <T extends BaseRequestHandler>(target: new (...args: any[]) => T) => void;