-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
新题目 #9535
Labels
Comments
Laffery
added
new-challenge
Propose a new challenge, a PR will be auto generated
zh-CN
简体中文
labels
Apr 30, 2022
#9536 - PR 已更新 |
|
type MakeArr<T,U = T> = T extends any[]? T:[U];
type VoidFunction<T = []> = (...args:MakeArr<T>)=>void; |
LGTM! But if there is some difference in the 2nd case: |
LGTM! But if there is some difference in the 2nd case: boolean to be boolean[], it seems that the answer doesn't work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
基本信息
题目
默认的VoidFunction不支持范型,现在请实现一个支持范型的VoidFunction类型
题目模版
以下是给予挑战者开始做题的代码模版,在大部分情况下你只需要修改类型名称使其符合你的题目与判题测试,实现的部分保持
any
即可。判题测试
请为你的题目提供一些判题测试,你可以使用
@type-challenges/utils
中提供的一些工具进行判断。The text was updated successfully, but these errors were encountered: