Skip to content

Commit

Permalink
Merge pull request #46 from evandrouzeda/master
Browse files Browse the repository at this point in the history
Typescript definitions
  • Loading branch information
mreinstein authored Sep 26, 2022
2 parents d38ea83 + 08e639d commit 1391769
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {Request, Response, NextFunction} from "express"
/**
* This function lookup for requests that include a signaturecertchainurl HTTP in header, parse out the entire body as a text string, and set a flag on the request object so others don't try to parse the body again.
* {@link https://github.com/alexa-js/alexa-verifier-middleware See the Documentation}
*/
declare function alexaVerifierMiddleware (req: Request, res: Response, next: NextFunction): NextFunction

export = alexaVerifierMiddleware
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.0.1",
"description": "An expressjs middleware that verifies HTTP requests sent to an Alexa skill are sent from Amazon.",
"type": "module",
"types": "index.d.ts",
"main": "index.js",
"scripts": {
"test": "tap ./test"
Expand Down

0 comments on commit 1391769

Please sign in to comment.