Skip to content

Commit

Permalink
typings: make idColumn array readonly
Browse files Browse the repository at this point in the history
to allow typescript to resolve actual column names out of that in other utility types
  • Loading branch information
falkenhawk committed Dec 16, 2024
1 parent 76fb48e commit 38b9f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typings/objection/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -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[];
Expand Down

0 comments on commit 38b9f05

Please sign in to comment.