From 3acc50844047a37698f0618fa235c138e386a053 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Apr 2019 09:50:57 +0200 Subject: Upgrade sequelize --- server/typings/sequelize.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 server/typings/sequelize.ts (limited to 'server/typings') diff --git a/server/typings/sequelize.ts b/server/typings/sequelize.ts new file mode 100644 index 000000000..9cd83612d --- /dev/null +++ b/server/typings/sequelize.ts @@ -0,0 +1,18 @@ +import { Model } from 'sequelize-typescript' + +// Thanks to sequelize-typescript: https://github.com/RobinBuschmann/sequelize-typescript + +export type Diff = + ({ [P in T]: P } & { [P in U]: never } & { [ x: string ]: never })[T] + +export type Omit = { [P in Diff]: T[P] } + +export type RecursivePartial = { [P in keyof T]?: RecursivePartial } + +export type FilteredModelAttributes> = RecursivePartial>> & { + id?: number | any + createdAt?: Date | any + updatedAt?: Date | any + deletedAt?: Date | any + version?: number | any +} -- cgit v1.2.3