Skip to content

Commit

Permalink
fix(typings): affectedRows was not inside an array
Browse files Browse the repository at this point in the history
  • Loading branch information
fzn0x committed Jun 30, 2022
1 parent 3ceaf23 commit ce07c3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/model.d.ts
Expand Up @@ -2837,12 +2837,12 @@ export abstract class Model<TModelAttributes extends {} = any, TCreationAttribut
this: ModelStatic<M>,
fields: AllowReadonlyArray<keyof Attributes<M>>,
options: IncrementDecrementOptionsWithBy<Attributes<M>>
): Promise<[affectedRows: M[]]>;
): Promise<M[]>;
static increment<M extends Model>(
this: ModelStatic<M>,
fields: { [key in keyof Attributes<M>]?: number },
options: IncrementDecrementOptions<Attributes<M>>
): Promise<[affectedRows: M[]]>;
): Promise<M[]>;
static increment<M extends Model>(
this: ModelStatic<M>,
fields: AllowReadonlyArray<keyof Attributes<M>>,
Expand Down Expand Up @@ -2871,12 +2871,12 @@ export abstract class Model<TModelAttributes extends {} = any, TCreationAttribut
this: ModelStatic<M>,
fields: AllowReadonlyArray<keyof Attributes<M>>,
options: IncrementDecrementOptionsWithBy<Attributes<M>>
): Promise<[affectedRows: M[]]>;
): Promise<M[]>;
static decrement<M extends Model>(
this: ModelStatic<M>,
fields: { [key in keyof Attributes<M>]?: number },
options: IncrementDecrementOptions<Attributes<M>>
): Promise<[affectedRows: M[]]>;
): Promise<M[]>;
static decrement<M extends Model>(
this: ModelStatic<M>,
fields: AllowReadonlyArray<keyof Attributes<M>>,
Expand Down

0 comments on commit ce07c3a

Please sign in to comment.