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:
Cameron Diver 2019-01-22 13:25:39 +00:00
parent fed01c355c
commit 1af13d3373
No known key found for this signature in database
GPG Key ID: 49690ED87032539F

View File

@ -47,7 +47,7 @@ export class DB {
public upsertModel(
modelName: string,
obj: any,
id: number | { [key: string]: string },
id: number | { [key: string]: unknown },
trx?: Knex.Transaction,
): Bluebird<any> {
const knex = trx || this.knex;