question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add TypeScript Support to cognito-express

See original GitHub issue
src/middleware/index.ts:1:28 - error TS7016: Could not find a declaration file for module 'cognito-express'. '/Users/naishe/app/node_modules/cognito-express/lib/index.js' implicitly has an 'any' type.
  Try `npm install @types/cognito-express` if it exists or add a new declaration (.d.ts) file containing `declare module 'cognito-express';`

Please add support for TypeScript.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:20
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

47reactions
bugeatscommented, Sep 18, 2018

It’s not a TypeScript project. Why should it be? Can you give one reason why type hinting would enhance this project in any way? Making your catch-all error messages go away is not a reason.

30reactions
aequasicommented, May 29, 2019

Would love to see types added. Might be beneficial to re-open this ticket

Read more comments on GitHub >

github_iconTop Results From Across the Web

Express with AWS Cognito Auth w/ Typescript (2020)
Login to your aws account and open the Cognito service and create a new user pool following the steps below: Enter a Pool...
Read more >
cognito-express - npm
cognito -express authenticates API requests on a Node-Express application by verifying the signature of AccessToken or IDToken generated by ...
Read more >
Node.js and TypeScript Tutorial: Secure an Express API - Auth0
Learn how to use TypeScript and Auth0 to secure a feature-complete Express.js API. Tutorial on how to use Auth0 to implement authorization in...
Read more >
How to Create Authentication APIs with AWS Cognito
And store “App client id” and “User pool Id” information, we will use it later. Create a simple web service with Express and...
Read more >
The Complete Guide to building an API with TypeScript and ...
To do that we need to install the aws-sdk and then import it. First run npm install --save aws-sdk and then add this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found