TypeScript declarations
See original GitHub issueDescribe the problem you’d like to have solved
There are no TypeScript declarations for this package! We want to use it programmatically with TypeScript but this is difficult without types.
Describe the ideal solution
It would be nice to include declarations alongside the npm package, or they can be added to https://github.com/DefinitelyTyped/DefinitelyTyped under @types/auth0-deploy-cli
Alternatives and current work-arounds
Currently, we just have declare module 'auth0-deploy-cli'; which is basically just turning off type-checking for the library
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Documentation - Introduction - TypeScript
The Declaration Files section is designed to teach you how to write a high-quality TypeScript Declaration File. We need to assume basic familiarity...
Read more >A quick introduction to “Type Declaration” files and adding ...
In this lesson, we are going to take a closer look at type declaration files which are one of the key ingredients of...
Read more >TypeScript — Type Declaration Files | by Makesh Kumar
Type declaration files are the files with d.ts extension, where types were declared via interface or type . These declaration files have no...
Read more >Writing Declaration Files for @types - TypeScript
Declaration files, if you're not familiar, are just files that describe the shape of an existing JavaScript codebase to TypeScript. By using ...
Read more >Declaration Files | The TypeScript Workshop
Traditionally, declaration files are kept in their own directory called types/ and are then imported by the modules that they are defining. It's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Good news folks, this has been added in our 7.8.0 release! I tested this quite a bit and believe it to cover most folks’ use cases, but it may not be 100% perfect. Would be great to have folks give it a go and provide some feedback.
Samples:
and
I’m going to close but please feel empowered to provide feedback regarding refinement and fixes with new issues.
Ditto here. Using it programmatically helps me keep a bunch of params in sync across aws-cdk, vercel env vars, paddle products, and auth0 config. I’ve got types for everything else, either because they’re provided or because I typed the API endpoints I use.