Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Parameters

Parameters<C>: C extends Class<infer P, any> ? P : never

Get the parameters of a class constructor

Type parameters

returns

List

example

import {C} from 'ts-toolbelt'

type User = C.Class<[string, string], {firstname: string, lastname: string}>

type test0 = C.Parameters<User> // [string, string]

  • 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.