Skip to content

Commit

Permalink
fix(sequelize-utils): fix InferModelAttributesWithDefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteMartinet committed Jul 16, 2024
1 parent 84d7caa commit e62147c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sequelize-utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type InferModelAttributes<M extends Model> = Model<InferAttributes<M>, In
export type IdType = string;

/** The default sequelize-graphql Model attributes */
export interface DefaultAttributes {
export interface DefaultAttributes extends InferModelAttributes<DefaultAttributes> {
id: CreationOptional<IdType>;
createdAt: CreationOptional<number>;
updatedAt: CreationOptional<number>;
Expand All @@ -35,4 +35,4 @@ export interface DefaultAttributes {
* }
* ```
*/
export type InferModelAttributesWithDefaults<M extends Model> = InferModelAttributes<M & DefaultAttributes>;
export type InferModelAttributesWithDefaults<M extends Model> = InferModelAttributes<M> & DefaultAttributes;

0 comments on commit e62147c

Please sign in to comment.