Skip to content

Commit

Permalink
[@mantine/form] Fix typing issue with nested interfaces in passed type (
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-rb committed Dec 10, 2022
1 parent 88c6ef5 commit cb06fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-form/src/types.ts
Expand Up @@ -29,7 +29,7 @@ type FormRule<Value, Values> = NonNullable<Value> extends Array<infer ListValue>
: FormRulesRecord<ListValue[Key]> | Rule<ListValue[Key], Values>;
}>
| Rule<Value, Values>
: NonNullable<Value> extends Record<string, unknown>
: NonNullable<Value> extends Record<string, any>
? FormRulesRecord<Value, Values> | Rule<Value, Values>
: Rule<Value, Values>;

Expand Down

0 comments on commit cb06fef

Please sign in to comment.