This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express'; | |
type AsyncRouteHandlerType = (request: express.Request, response: express.Response, next: express.NextFunction) => Promise<void>; | |
/** | |
* Wraps async router function, calls the function with router args and invokes next function on exceptions. | |
* @example | |
* import express from 'express'; | |
* const router = express.Router(); | |
* router.get('/thing/list', asyncRouteHandler(listThings)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'dialogflow-fulfillment' { | |
import { DialogflowConversation } from 'actions-on-google'; | |
import { Request, Response } from 'express'; | |
export class Card extends RichResponse { | |
constructor(card: string | object); | |
public setButton(button: { | |
text: string, | |
url: string, |