We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
精读 type-challenges Medium 9~16 题。
精读《Promise.all, Replace, Type Lookup...》
The text was updated successfully, but these errors were encountered:
不知道是 bug 还是 feature,TS 的 { [K in keyof T]: T[K] } 能同时兼容元组、数组与对象类型。
keyof T 的结果是 string | number | symbol,T[number] 自然就兼容数组了~
keyof T
string | number | symbol
Sorry, something went wrong.
No branches or pull requests
精读 type-challenges Medium 9~16 题。
精读《Promise.all, Replace, Type Lookup...》
The text was updated successfully, but these errors were encountered: