diff --git a/typings/objection/index.d.ts b/typings/objection/index.d.ts index e0cf7d8a2..1e1aaa3e8 100644 --- a/typings/objection/index.d.ts +++ b/typings/objection/index.d.ts @@ -1581,7 +1581,7 @@ declare namespace Objection { static defaultGraphOptions?: GraphOptions; static query( - this: Constructor, + this: ConstructorType, trxOrKnex?: TransactionOrKnex, ): QueryBuilderType; @@ -1596,8 +1596,8 @@ declare namespace Objection { trxOrKnex?: TransactionOrKnex, ): QueryBuilderType; - static fromJson(this: Constructor, json: object, opt?: ModelOptions): M; - static fromDatabaseJson(this: Constructor, json: object): M; + static fromJson(this: ConstructorType, json: object, opt?: ModelOptions): M; + static fromDatabaseJson(this: ConstructorType, json: object): M; static columnNameToPropertyName(columnName: string): string; static propertyNameToColumnName(propertyName: string): string; @@ -1623,14 +1623,14 @@ declare namespace Objection { static bindTransaction(this: M, trxOrKnex: TransactionOrKnex): M; static fetchGraph( - this: Constructor, + this: ConstructorType, modelOrObject: PartialModelObject, expression: RelationExpression, options?: FetchGraphOptions, ): SingleQueryBuilder>; static fetchGraph( - this: Constructor, + this: ConstructorType, modelOrObject: PartialModelObject[], expression: RelationExpression, options?: FetchGraphOptions,