Skip to content

Type Alias: NormalizeConstructor<T>

ts
type NormalizeConstructor<T> = (
  ...args: any[]
) => InstanceType<T> & Omit<T, "constructor">;

Normalizes constructor to work with mixins. There is an open bug for mixins to allow constructors other than ...args: any[]

https://github.com/microsoft/TypeScript/issues/37142

Type Parameters

Type Parameter
T extends Constructor