Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose more final types #131

Open
roydukkey opened this issue Feb 18, 2023 · 1 comment
Open

Expose more final types #131

roydukkey opened this issue Feb 18, 2023 · 1 comment

Comments

@roydukkey
Copy link

Though it is currently possibly to determine most types from the default export...

import cliui from 'cliui';

type UI = ReturnType<typeof cliui>;
type UIOptions = Parameters<typeof cliui>[0];

...these types are rather finicky. It would be great if more finalized types were exported from this package.

@shadowspawn
Copy link
Member

The current types you are seeing were not intended to be published, which explains why they are a bit lacking, but they may go away rather than be improved! 😢

See: #96 and #132 (comment)

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

No branches or pull requests

2 participants