Skip to content

Commit 41ae715

Browse files
marcinleefalkenhawk
authored andcommitted
expand allowed types for tableRefFor and tableNameFor
it fixes: Argument of type 'ModelClass<Foo>' is not assignable to parameter of type 'typeof Model'
1 parent 8f88965 commit 41ae715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/objection/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ declare namespace Objection {
613613
}
614614

615615
interface TableRefForMethod {
616-
(modelClass: typeof Model): string;
616+
(modelClass: ModelClass<Model> | typeof Model): string;
617617
}
618618

619619
interface AliasForMethod<QB extends AnyQueryBuilder> {

0 commit comments

Comments
 (0)