Upcoming TypeScript changes to Enquirer
See original GitHub issueI wanted to leave a trace here about a promising PR in the enquirer
repo regarding TypeScript definitions (https://github.com/enquirer/enquirer/pull/307).
I understand that the typings provided by listr2
are an internal reproduction of Enquirer’s typings, although they are incomplete. Hopefully once the above PR is merged and published, the custom typings in listr2
can be removed!
Thanks for all the hard work on this great package btw! I love the developer experience here 🚀
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
enquirer - npm
Get started with Enquirer, the most powerful and easy-to-use Node.js library for creating interactive CLI prompts. Install; Usage; Enquirer ...
Read more >Announcing TypeScript 4.8 - Microsoft Developer Blogs
Here's a quick list of what's new in TypeScript 4.8! ... These changes affect how intersection and union types work, and are leveraged...
Read more >Creating a Node CLI with Enquirer - LogRocket Blog
Now, we can make a new function where we'll handle all the daily usage logic, using Chalk to change the log color and...
Read more >I created a Command Line Game for you // 5-Minute Node.js ...
Building your own Command Line Interface (CLI) is easier than you might think with Node.js. There are a bunch of open-source packages that ......
Read more >How to build a command-line app in Node.js using TypeScript ...
Next issue after we complete the above is how do we get user inputs. Inquirer.js solves the issue for us. Inquirer.js strives to...
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
Another option is to pull those (correct) typings into
listr2
and use them directly. I’ve done this myself in the past: https://github.com/smithki/zombi/blob/master/packages/zombi/src/types/enquirer.tsOr… maybe it’s time for yet another Node.js prompt package. Not a single one has satisfactory TypeScript support in my experience.
I guess this will never get merged to the upstream library.