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

NoInfer TS 5.4 #2099

Open
david-shortman opened this issue Feb 17, 2024 · 2 comments
Open

NoInfer TS 5.4 #2099

david-shortman opened this issue Feb 17, 2024 · 2 comments

Comments

@david-shortman
Copy link
Contributor

export type NoInfer<T> = T extends (infer O)[] ? _NoInfer<O>[] : _NoInfer<T>;

In TS 5.4, a native NoInfer type will be introduced. Then this type can be replaced.

@david-shortman
Copy link
Contributor Author

@markwhitfeld
Copy link
Member

Wow! Great news!
Thank you so much for this update. We would have definitely missed that.

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