From dc69646d450c096ae446e779b8049e4d6614d0e4 Mon Sep 17 00:00:00 2001 From: Max Kahnt Date: Wed, 25 Sep 2024 13:32:05 +0200 Subject: [PATCH] fix: Generatic static this continued. --- typings/objection/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,