questions/03312-easy-parameters/README.zh-CN.md
实现内置的 Parameters<T> 类型,而不是直接使用它,可参考TypeScript官方文档。
例如:
const foo = (arg1: string, arg2: number): void => {}
type FunctionParamsType = MyParameters<typeof foo> // [arg1: string, arg2: number]
<a href="../../README.zh-CN.md" target="_blank"></a> <a href="https://tsch.js.org/3312/answer/zh-CN" target="_blank"></a> <a href="https://tsch.js.org/3312/solutions" target="_blank"></a> <!--info-footer-end-->