Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Function/Parameters"

Index

Type aliases

Type aliases

Parameters

Parameters<F>: Parameters<F>

Extract parameters from a Function

Type parameters

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]

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.