From 580ef4115c4b59820c05aafe7a90cc858cc623c6 Mon Sep 17 00:00:00 2001 From: Arnaud Moncel Date: Tue, 6 Jul 2021 14:58:24 +0200 Subject: [PATCH] fix: fix types --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index bc55a210e..ef4a683ca 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -219,7 +219,7 @@ export interface SmartActionLoadHookField extends SmartActionHookField { } export interface SmartActionLoadHook { - (context: { fields: Array, record: M }): Array + (context: { fields: SmartActionLoadHookField[], record: M }): SmartActionLoadHookField[] } export interface SmartActionChangeHookField extends SmartActionHookField { @@ -227,7 +227,7 @@ export interface SmartActionChangeHookField extends SmartActionHookField { } export interface SmartActionChangeHook { - (context: { fields: Array, record: M, changedField: SmartActionChangeHookField }): Array + (context: { fields: SmartActionChangeHookField[], record: M, changedField: SmartActionChangeHookField }): SmartActionChangeHookField[] } export interface SmartActionHooks {