Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Parameters

Parameters<F>: F extends function ? L : never

Extract parameters from a Function

Type parameters

returns

List

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]

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.