#Is it possible to access constructor with indexed access types?
1 messages · Page 1 of 1 (latest)
can you show an example of how you want to use this wrapper function with a real constructor?
I don't understand exactly what you are asking, but if you want to extract the parameter list of the constructor, there is ConstructorParameters
class Thing {
constructor(a: number, b: string) {}
}
type A = ConstructorParameters<typeof Thing>; // [a: number, b: string]```