From e8c32f3ea9bac51c84da776bc54546d99d11e18a Mon Sep 17 00:00:00 2001 From: Edmund Hung Date: Sat, 11 May 2024 12:52:28 +0200 Subject: [PATCH] fixup! Update submission.ts --- packages/conform-dom/submission.ts | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) 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: {