Skip to content

Commit

Permalink
fix: ensure types allow for nested arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Sep 22, 2023
1 parent 18753cf commit 06b145b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export type Field<
adaptor?: Adaptor;
adaptorParams?: object;
arrayFields?: {
[SubPropName in keyof Props]: Field<Props[SubPropName]>;
[SubPropName in keyof Props]: Field<Props[SubPropName][0]>;
};
getItemSummary?: (item: Props, index?: number) => string;
defaultItemProps?: Props;
Expand Down

0 comments on commit 06b145b

Please sign in to comment.