1 Star 0 Fork 0

Sunny / type-challenges

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
antfu 提交于 2022-04-19 12:07 . chore: rename branch

IsTuple medium #tuple

by jiangshan @jiangshanmeta

Take the Challenge

Implement a type IsTuple, which takes an input type T and returns whether T is tuple type.

For example:

type case1 = IsTuple<[number]> // true
type case2 = IsTuple<readonly [number]> // true
type case3 = IsTuple<number[]> // false

Back Share your Solutions Check out Solutions

Related Challenges

1042・IsNever 1097・IsUnion 223・IsAny
1
https://gitee.com/ztes/type-challenges.git
git@gitee.com:ztes/type-challenges.git
ztes
type-challenges
type-challenges
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891