Skip to content

Commit

Permalink
feat(utilities): support abstract classes for Constructor utility t…
Browse files Browse the repository at this point in the history
…ype (#194)
  • Loading branch information
vladfrangu committed Oct 4, 2021
1 parent 0efe80e commit 732d5a0
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 @@ -51,7 +51,7 @@ export type Ctor<A extends Arr = readonly any[], R = any> = new (...args: A) =>
/**
* A generic constructor without parameters
*/
export type Constructor<T> = new (...args: any[]) => T;
export type Constructor<T> = abstract new (...args: any[]) => T;

/**
* Gets the first argument of any given function
Expand Down

0 comments on commit 732d5a0

Please sign in to comment.