Index
Type aliases
Type aliases
Parameters
Type parameters
-
F: Function
to extract from
returns
any[]
example
import {F} from 'ts-toolbelt'
const fn = (name: string, age: number) => {}
type test0 = F.ParamsOf<typeof fn> // [string, number]
type test1 = F.ParamsOf<(name: string, age: number) => {}> // [string, number]
Extract parameters from a
Function