@forge/jira-bridge
0.40.10.40.1-experimental-04cc2b9
out/ui-modifications/onChange.d.ts~
out/ui-modifications/onChange.d.tsModified+3−3
Index: package/out/ui-modifications/onChange.d.ts
===================================================================
--- package/out/ui-modifications/onChange.d.ts
+++ package/out/ui-modifications/onChange.d.ts
@@ -1,15 +1,15 @@
import type { Field, FieldId, HookApi, UiModification } from './types';
import { FieldType } from './types/field-api';
-export declare type FieldChange = {
+export type FieldChange = {
current?: Field<FieldType>;
};
-export declare type OnChangeHookCallback = (props: {
+export type OnChangeHookCallback = (props: {
api: HookApi;
change: FieldChange;
uiModifications: UiModification[];
}) => Promise<void> | void;
-export declare type RegisterOnChangeFieldsCallback = (payload: {
+export type RegisterOnChangeFieldsCallback = (payload: {
uiModifications: UiModification[];
change: FieldChange;
}) => Array<FieldId>;
export declare function onChange(onChangeCallback: OnChangeHookCallback, registerOnChangeFieldsCallback: RegisterOnChangeFieldsCallback): Promise<void>;