X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftypes%2Fsequelize.ts;h=e399c3d5d8e151fdd9d3e4f857e3fc8a598a6b20;hb=70c6a848a43868d826453da11d212fa96956fb0c;hp=9cd83612d0e8a8507aa656b7d2e91435b672edc9;hpb=26d6bf6533023326fa017812cf31bbe20c752d36;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/types/sequelize.ts b/server/types/sequelize.ts index 9cd83612d..e399c3d5d 100644 --- a/server/types/sequelize.ts +++ b/server/types/sequelize.ts @@ -1,4 +1,5 @@ -import { Model } from 'sequelize-typescript' +import { AttributesOnly } from '@shared/typescript-utils' +import { Model } from 'sequelize' // Thanks to sequelize-typescript: https://github.com/RobinBuschmann/sequelize-typescript @@ -9,7 +10,7 @@ export type Omit = { [P in Diff]: T[P] } export type RecursivePartial = { [P in keyof T]?: RecursivePartial } -export type FilteredModelAttributes> = RecursivePartial>> & { +export type FilteredModelAttributes> = Partial> & { id?: number | any createdAt?: Date | any updatedAt?: Date | any