UNPKG

@jargon/alexa-skill-sdk

Version:

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

20 lines (19 loc) 792 B
import { HandlerInput, RequestInterceptor } from 'ask-sdk-core'; import { ResourceManagerFactory, ResourceManager } from '@jargon/sdk-core'; import { JargonResponseBuilder, JargonResponseBuilderOptions } from '../responseBuilder'; declare module 'ask-sdk-core' { interface HandlerInput { jargonResponseBuilder: JargonResponseBuilder; jrb: JargonResponseBuilder; jargonResourceManager: ResourceManager; jrm: ResourceManager; } } export interface JargonHandlerInput extends HandlerInput { } export declare class JargonRequestInterceptor implements RequestInterceptor { private _opts; private _rmf; constructor(rmf: ResourceManagerFactory, opts?: JargonResponseBuilderOptions); process(handlerInput: HandlerInput): Promise<void> | void; }