mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Adding the 'resources' property to AlexaObject (#18210)
* Adding the 'resources' property to AlexaObject * Updating alexa-sdk tests * Adding myself to credits for alexa-sdk
This commit is contained in:
@@ -2,6 +2,7 @@ import * as Alexa from "alexa-sdk";
|
||||
|
||||
const handler = (event: Alexa.RequestBody<Alexa.Request>, context: Alexa.Context, callback: () => void) => {
|
||||
let alexa = Alexa.handler(event, context);
|
||||
alexa.resources = {};
|
||||
alexa.registerHandlers(handlers);
|
||||
alexa.execute();
|
||||
};
|
||||
|
||||
Vendored
+2
@@ -3,6 +3,7 @@
|
||||
// Definitions by: Pete Beegle <https://github.com/petebeegle>
|
||||
// Huw <https://github.com/hoo29>
|
||||
// pascalwhoop <https://github.com/pascalwhoop>
|
||||
// Ben <https://github.com/blforce>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@@ -20,6 +21,7 @@ export interface AlexaObject<T> extends Handler<T> {
|
||||
state: any;
|
||||
appId: any;
|
||||
response: any;
|
||||
resources: any;
|
||||
dynamoDBTableName: any;
|
||||
saveBeforeResponse: boolean;
|
||||
registerHandlers: (...handlers: Array<Handlers<T>>) => any;
|
||||
|
||||
Reference in New Issue
Block a user