import { Ctx } from '../ctx/base'; import type { FieldAdditionalProperties } from '../ctx/commonExtras/field'; import type { ItemFormAdditionalMethods, ItemFormAdditionalProperties } from '../ctx/commonExtras/itemForm'; export type ExecuteFieldDropdownActionHook = { /** * Use this function to execute a particular dropdown action defined via * the `fieldDropdownActions()` hook. * * @tag dropdownActions */ executeFieldDropdownAction: ( /** The ID of the action that was requested by the user */ actionId: string, ctx: ExecuteFieldDropdownActionCtx) => Promise; }; export type ExecuteFieldDropdownActionCtx = Ctx | undefined; }, ItemFormAdditionalMethods>;