Skip to content

Commit

Permalink
Fixes ianstormtaylor#1192 - extends abstract (and non-abstract) class
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-dean authored Nov 13, 2023
1 parent 03d65bd commit cd6f229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function func(): Struct<Function, null> {
* Ensure that a value is an instance of a specific class.
*/

export function instance<T extends { new (...args: any): any }>(
export function instance<T extends abstract new (...args: any) => any>(
Class: T
): Struct<InstanceType<T>, null> {
return define('instance', (value) => {
Expand Down

0 comments on commit cd6f229

Please sign in to comment.