Skip to content

Commit

Permalink
Fix instacart#371 : Form validations type fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie Philip James committed Oct 18, 2019
1 parent e80b438 commit 186b2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Forms/FormComponent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type ParametersAfterFirst<T extends (value: string, ...args: any[]) => any> = T
: never

type Validators = Omit<typeof Validator, 'toString' | 'version' | 'extend'>
type Validations = { [Key in keyof Validators]: ParametersAfterFirst<Validators[Key]> }
type Validations = Partial<{ [Key in keyof Validators]: ParametersAfterFirst<Validators[Key]> }>

interface FormComponentProps {
/** Model name for Form */
Expand Down

0 comments on commit 186b2fd

Please sign in to comment.