diff --git a/typings/objection/index.d.ts b/typings/objection/index.d.ts index e0cf7d8a2..b8fdcc997 100644 --- a/typings/objection/index.d.ts +++ b/typings/objection/index.d.ts @@ -693,10 +693,12 @@ declare namespace Objection { } interface TableRefForMethod { - (modelClass: ModelClass | typeof Model): string; + (modelClass: AnyModelConstructor): string | null; + // The setter variant is not public. } interface AliasForMethod { + (modelClassOrTableName: string | AnyModelConstructor): string | null; (modelClassOrTableName: string | AnyModelConstructor, alias: string): QB; }