Skip to content

Commit

Permalink
expand allowed types for tableRefFor and tableNameFor
Browse files Browse the repository at this point in the history
it fixes:
Argument of type 'ModelClass<Foo>' is not assignable to parameter of type 'typeof Model'
  • Loading branch information
marcinlee authored and falkenhawk committed Apr 22, 2023
1 parent 123efe2 commit 7eafc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typings/objection/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ declare namespace Objection {
}

interface TableRefForMethod {
(modelClass: typeof Model): string;
(modelClass: ModelClass<Model> | typeof Model): string;
}

interface AliasForMethod<QB extends AnyQueryBuilder> {
Expand Down

0 comments on commit 7eafc42

Please sign in to comment.