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.

Upcoming TypeScript changes to Enquirer

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
smithkicommented, Jun 9, 2022

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.ts

Or… maybe it’s time for yet another Node.js prompt package. Not a single one has satisfactory TypeScript support in my experience.

1reaction
cenk1cenk2commented, Jun 9, 2022

I guess this will never get merged to the upstream library.

Read more comments on GitHub >

github_iconTop 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 >

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