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

TypeScript: never 和 void 类型 #23

Open
bin16 opened this issue Oct 25, 2018 · 0 comments
Open

TypeScript: never 和 void 类型 #23

bin16 opened this issue Oct 25, 2018 · 0 comments

Comments

@bin16
Copy link
Member

bin16 commented Oct 25, 2018

https://blog.feddy.org/p/19ad38c2-44a2-48fc-9346-52bae669c1a1/

看 TypeScript 的文档的时候,发现 TS 不仅仅有 void 类型,还有一个 never 类型,两者看起来都是不返回,那么它们的不同之处在哪里呐?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant