1 Star 0 Fork 0

Sunny / type-challenges

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.zh-CN.md 3.06 KB
一键复制 编辑 原始数据 按行查看 历史
Keit Oliveira 提交于 2024-02-07 07:59 . i18n: translate to pt-br (#31698)

元组转合集 中等 #infer #tuple #union

by Anthony Fu @antfu

接受挑战    English 日本語 한국어 Português (BR)

实现泛型TupleToUnion<T>,它返回元组所有值的合集。

例如

type Arr = ['1', '2', '3']

type Test = TupleToUnion<Arr> // expected to be '1' | '2' | '3'

返回首页 分享你的解答 查看解答

相关挑战

11・元组转换为对象 472・Tuple to Enum Object 730・Union to Tuple 3188・Tuple to Nested Object
1
https://gitee.com/ztes/type-challenges.git
git@gitee.com:ztes/type-challenges.git
ztes
type-challenges
type-challenges
main

搜索帮助