Skip to content

Commit

Permalink
fix(utilities): support abstract classes for Ctor utility type
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Oct 4, 2021
1 parent 18e0df2 commit 1ce3136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utilities/src/lib/utilityTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export type Arr = readonly any[];
/**
* A generic constructor with parameters
*/
export type Ctor<A extends Arr = readonly any[], R = any> = new (...args: A) => R;
export type Ctor<A extends Arr = readonly any[], R = any> = abstract new (...args: A) => R;

/**
* A generic constructor without parameters
Expand Down

0 comments on commit 1ce3136

Please sign in to comment.