Skip to content

Commit

Permalink
fix validation type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed Sep 12, 2024
1 parent 170aca1 commit a24451b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/snaps-sdk/src/jsx/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {
} from '../internals';
import type { EmptyObject } from '../types';
import type {
GenericSnapChildren,
GenericSnapElement,
JsonObject,
Key,
Expand Down Expand Up @@ -398,9 +399,9 @@ const FieldChildStruct = nullUnion([
tuple(BOX_INPUT_BOTH),
...FIELD_CHILDREN_ARRAY,
]) as unknown as Struct<
| [InputElement, GenericSnapElement]
| [GenericSnapElement, InputElement]
| [GenericSnapElement, InputElement, GenericSnapElement]
| [InputElement, GenericSnapChildren]
| [GenericSnapChildren, InputElement]
| [GenericSnapChildren, InputElement, GenericSnapChildren]
| DropdownElement
| RadioGroupElement
| FileInputElement
Expand Down

0 comments on commit a24451b

Please sign in to comment.