UNPKG

@jargon/alexa-skill-sdk

Version:

The Jargon Alexa Skill SDK makes it easy to manage the content of your custom Alexa skill

31 lines (30 loc) 1.23 kB
import { BaseSkillBuilder } from 'ask-sdk-core'; import { ResourceManagerOptions } from '@jargon/sdk-core'; import { JargonResponseBuilderOptions } from '../responseBuilder'; export interface SkillBuilderOptions extends ResourceManagerOptions, JargonResponseBuilderOptions { } export declare const DefaultSkillBuilderOptions: Required<SkillBuilderOptions>; /** * JargonSkillBuilder installs itself onto an ASK SkillBuilder. Under the covers it creates * a Jargon ResourceManager, and installs interceptors on the base skill builder that handle * augmenting the ASK request objects with Jargon's additions (such as JargonResponseBuilder) */ export declare class JargonSkillBuilder { private _options; private _rmf; /** * Constructs a new JargonSkillBuilder * @param opts Options for the skill builder; defaults to an empty object */ constructor(opts?: SkillBuilderOptions); /** * Installs onto a base ASK skill builder * @param base The base ASK skill builder */ installOnto<T extends BaseSkillBuilder>(base: T): T; /** * @deprecated Use installOnto instead * @param base The base ASK skill builder */ wrap<T extends BaseSkillBuilder>(base: T): T; }