Skip to content

Commit

Permalink
fix: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-moncel committed Jul 6, 2021
1 parent 1c5fa0c commit 580ef41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,15 @@ export interface SmartActionLoadHookField extends SmartActionHookField {
}

export interface SmartActionLoadHook<M extends Sequelize.Model = any> {
(context: { fields: Array<SmartActionLoadHookField>, record: M }): Array<SmartActionLoadHookField>
(context: { fields: SmartActionLoadHookField[], record: M }): SmartActionLoadHookField[]
}

export interface SmartActionChangeHookField extends SmartActionHookField {
previousValue: any,
}

export interface SmartActionChangeHook<M extends Sequelize.Model = any> {
(context: { fields: Array<SmartActionChangeHookField>, record: M, changedField: SmartActionChangeHookField }): Array<SmartActionChangeHookField>
(context: { fields: SmartActionChangeHookField[], record: M, changedField: SmartActionChangeHookField }): SmartActionChangeHookField[]
}

export interface SmartActionHooks {
Expand Down

0 comments on commit 580ef41

Please sign in to comment.