-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Expected behavior
The type should support an async function based on the docs described here: https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions/use-a-smart-action-form#prefill-a-form-with-default-values
export interface SmartActionHooks {
load: SmartActionLoadHook;
change: Record<string, SmartActionChangeHook>;
}
export interface SmartActionLoadHook {
(context: { fields: SmartActionLoadHookField[], request: SmartActionLoadHookRequest })
: SmartActionLoadHookField[] | Promise<SmartActionLoadHookField[]>
}
Actual behavior
export interface SmartActionLoadHook {
(context: { fields: SmartActionLoadHookField[], request: SmartActionLoadHookRequest }): SmartActionLoadHookField[]
}
Context
- Package Version: forest-express-sequelize@8.1.0
Metadata
Metadata
Assignees
Labels
No labels