-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
use template literal types to call 'opts' with type safely #1585
Comments
I think this may be too complex to do with the existing API. Deducing type for An alternative interface for configuration might allow type deduction and a different style of setup (e.g. #665), in situations where preference or the benefits make it attractive. I saw an interesting related statement in the Clipanion documentation:
|
This issue has not had any activity in a month. It isn't likely to get acted on due to this report. Feel free to open a new issue if it comes up again, with new information and renewed interest. Thank you for your contributions. |
For some experimental strong inferred typing see: https://github.com/commander-js/extra-typings |
Since typescript 4.1, template literal types was coming.
This feature enables us to call the 'opts' function with type safety without specifying types, I think. Could you implement this?
The text was updated successfully, but these errors were encountered: