Skip to content

Commit

Permalink
Add form to TS types of FieldArray
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Dec 13, 2017
1 parent 16509e5 commit d4fcb76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FieldArray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import { dlv } from './utils';
import { SharedRenderProps } from './types';
import * as PropTypes from 'prop-types';
import { move, swap, insert } from './Mutators';
import { FormikProps } from './formik';

export type FieldArrayConfig = {
/** Really the path to the array field to be updated */
name: string;
} & SharedRenderProps<ArrayHelpers>;
} & SharedRenderProps<ArrayHelpers & { form: FormikProps<any> }>;

export interface ArrayHelpers {
/** Add a value to the end of an array */
Expand Down

0 comments on commit d4fcb76

Please sign in to comment.