Skip to content

Commit

Permalink
fix(utilities): correct forgotten abstract (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Oct 5, 2021
1 parent ed058c3 commit 20b7ef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 abstract constructor with parameters
*/
export type AbstractCtor<A extends Arr = readonly any[], R = any> = new (...args: A) => R;
export type AbstractCtor<A extends Arr = readonly any[], R = any> = abstract new (...args: A) => R;

/**
* A generic constructor without parameters
Expand All @@ -61,7 +61,7 @@ export type Constructor<T> = new (...args: any[]) => T;
/**
* A generic abstract constructor without parameters
*/
export type AbstractConstructor<T> = new (...args: any[]) => T;
export type AbstractConstructor<T> = abstract new (...args: any[]) => T;

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

0 comments on commit 20b7ef7

Please sign in to comment.