mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-01 23:30:48 +00:00
typings: Improve database typings by allowing unknown dictionary keys
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
fed01c355c
commit
1af13d3373
@ -47,7 +47,7 @@ export class DB {
|
|||||||
public upsertModel(
|
public upsertModel(
|
||||||
modelName: string,
|
modelName: string,
|
||||||
obj: any,
|
obj: any,
|
||||||
id: number | { [key: string]: string },
|
id: number | { [key: string]: unknown },
|
||||||
trx?: Knex.Transaction,
|
trx?: Knex.Transaction,
|
||||||
): Bluebird<any> {
|
): Bluebird<any> {
|
||||||
const knex = trx || this.knex;
|
const knex = trx || this.knex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user