Skip to content

Commit

Permalink
refactor: CallableFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
chappelo committed Sep 1, 2024
1 parent b8ec965 commit 69fe5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fixtures/testModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ export class TestClassModel extends TestClassBaseModel {
}

type NonFunctionPropertyNames<T> = {
[K in keyof T]: T[K] extends Function ? never : K;
[K in keyof T]: T[K] extends CallableFunction ? never : K;
}[keyof T];
type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
export class GetterClass {
Expand Down

0 comments on commit 69fe5bc

Please sign in to comment.