Skip to content

Commit

Permalink
fix: update intent value type
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiscontent committed May 11, 2024
1 parent 1626fd9 commit 1a9c9bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/conform-dom/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ export type UpdateIntent<Schema = any> = {
| {
name: FieldName<Schema>;
index: Schema extends Array<unknown> ? number : never;
value?: NonNullable<
DefaultValue<Schema extends Array<infer Item> ? Item : unknown>
>;
value?: Schema extends Array<infer Item>
? NonNullable<DefaultValue<Item>>
: never;
validated?: boolean;
};
};
Expand Down

0 comments on commit 1a9c9bd

Please sign in to comment.