type-tls
Version:
type-tls 封装了与类型相关的工具,比如:获取数据的类型 或 类型名字、判断数据的类型 等
16 lines (9 loc) • 521 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [type-tls](./type-tls.md) > [MethodParams](./type-tls.methodparams.md)
## MethodParams type
获取对象的方法的某个参数的类型
**Signature:**
```typescript
export type MethodParams<Obj, Method extends keyof Obj, ParamIndex extends number> = Obj[Method] extends AnyFunction ? Parameters<Obj[Method]>[ParamIndex] : never;
```
**References:** [AnyFunction](./type-tls.anyfunction.md)