Skip to content

Conversation

bitjson
Copy link
Contributor

@bitjson bitjson commented Aug 6, 2020

This just adds the missing symbols to the exported TypeScript types. (I've been working on enquirer/enquirer#307, and some of the remaining issues are missing symbols here.)

I also included the precise symbols rather than defining each as a string – this makes the autocomplete a little nicer when selecting a symbol.

@@ -26,6 +26,7 @@ const common = {
pilcrow2: '❡',
pilcrow: '¶',
plusMinus: '±',
question: '?',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way: the question symbol was exactly the same between the windows and other sets, so I moved it to the common set.

@bitjson
Copy link
Contributor Author

bitjson commented Aug 6, 2020

Last change – I also added tsdocs to each union-typed symbol to make hovers a little nicer.
Screen Shot 2020-08-06 at 12 12 54 PM

@doowb
Copy link
Owner

doowb commented Sep 9, 2020

Thanks!

@doowb doowb merged commit f5b5e12 into doowb:master Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants