diff --git a/server/models/utils.ts b/server/models/utils.ts index 69ad123ac..93723816f 100644 --- a/server/models/utils.ts +++ b/server/models/utils.ts @@ -258,12 +258,12 @@ function buildSQLAttributes (options: { model: ModelStatic tableName: string - excludeAttributes?: (keyof AttributesOnly)[] + excludeAttributes?: Exclude, symbol>[] aliasPrefix?: string }) { const { model, tableName, aliasPrefix, excludeAttributes } = options - const attributes = Object.keys(model.getAttributes()) + const attributes = Object.keys(model.getAttributes()) as Exclude, symbol>[] return attributes .filter(a => { diff --git a/tsconfig.json b/tsconfig.json index 38758ff3f..8bcd944e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,6 @@ "@shared/*": [ "shared/*" ] }, "typeRoots": [ - "server/typings", "node_modules/@types" ] },