Skip to content

Commit 69fe5bc

Browse files
committed
refactor: CallableFunction
1 parent b8ec965 commit 69fe5bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fixtures/testModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ export class TestClassModel extends TestClassBaseModel {
12031203
}
12041204

12051205
type NonFunctionPropertyNames<T> = {
1206-
[K in keyof T]: T[K] extends Function ? never : K;
1206+
[K in keyof T]: T[K] extends CallableFunction ? never : K;
12071207
}[keyof T];
12081208
type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
12091209
export class GetterClass {

0 commit comments

Comments
 (0)