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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
//使用ts实现将元组转换成对象的形式 const tuple = ["tesla", "model 3", "model X", "model Y"] as const; type TupleToObject<T extends readonly (string | number | symbol)[]> = { [P in T[number]]: P; }; type result = TupleToObject<typeof tuple>;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: