From 38b9f05626062f47cfae5d293466a48b45ed3104 Mon Sep 17 00:00:00 2001 From: Maciej Holyszko <14310995+falkenhawk@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:28:20 +0100 Subject: [PATCH] typings: make idColumn array readonly to allow typescript to resolve actual column names out of that in other utility types --- typings/objection/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/objection/index.d.ts b/typings/objection/index.d.ts index e0cf7d8a2..8b82fc3dd 100644 --- a/typings/objection/index.d.ts +++ b/typings/objection/index.d.ts @@ -1442,7 +1442,7 @@ declare namespace Objection { QueryBuilder: typeof QueryBuilder; tableName: string; - idColumn: string | string[]; + idColumn: string | readonly string[]; jsonSchema: JSONSchema; relationMappings: RelationMappings | RelationMappingsThunk; modelPaths: string[]; @@ -1551,7 +1551,7 @@ declare namespace Objection { static QueryBuilder: typeof QueryBuilder; static tableName: string; - static idColumn: string | string[]; + static idColumn: string | readonly string[]; static jsonSchema: JSONSchema; static relationMappings: RelationMappings | RelationMappingsThunk; static modelPaths: string[];