Skip to content

Commit 7eafc42

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 123efe2 commit 7eafc42

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
@@ -690,7 +690,7 @@ declare namespace Objection {
690690
}
691691

692692
interface TableRefForMethod {
693-
(modelClass: typeof Model): string;
693+
(modelClass: ModelClass<Model> | typeof Model): string;
694694
}
695695

696696
interface AliasForMethod<QB extends AnyQueryBuilder> {

0 commit comments

Comments
 (0)