探索
Akiyama's blog
Search
暗色模式
亮色模式
阅读模式
Home
❯
Random
❯
myReturnType
myReturnType
2026年5月19日
1分钟阅读
获取函数返回值的类型
type
myReturnType
<
T
>
=
T
extends
(
...
args
:
any
[])
=>
infer
R
?
R
:
never