Skip to content

Commit

Permalink
feat(types): use abstract construct signatures for type Constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Apr 17, 2024
1 parent 77f9103 commit a83c4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
## Features

- support other `Reflect` polyfills than `reflect-metadata` by checking only used `Reflect` API (#1102)
- use abstract construct signatures (`abstract new () => ...`) syntax for type `Constructor` to let combine abstract classes (#954)

## Fixes

Expand Down
2 changes: 1 addition & 1 deletion src/typings/utils/Constructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
/**
Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes).
*/
export type Constructor<T extends object, Arguments extends unknown[] = any[]> = new (
export type Constructor<T extends object, Arguments extends unknown[] = any[]> = abstract new (
...arguments_: Arguments
) => T;

0 comments on commit a83c4b9

Please sign in to comment.