diff --git a/packages/conform-dom/submission.ts b/packages/conform-dom/submission.ts index e456a59d..7e4b029e 100644 --- a/packages/conform-dom/submission.ts +++ b/packages/conform-dom/submission.ts @@ -321,21 +321,24 @@ export type ResetIntent = { }; export type UpdateIntent = { - type: 'update'; - payload: { - name?: FieldName; - index?: never; - value?: NonNullable>; - validated?: boolean; - } | { - name: FieldName; - index: Schema extends Array ? number : never; - value?: Schema extends Array ? NonNullable> : never; - validated?: boolean; - }; + type: 'update'; + payload: + | { + name?: FieldName; + index?: never; + value?: NonNullable>; + validated?: boolean; + } + | { + name: FieldName; + index: Schema extends Array ? number : never; + value?: Schema extends Array + ? NonNullable> + : never; + validated?: boolean; + }; }; - export type RemoveIntent = { type: 'remove'; payload: {