Skip to content

Commit 82cf85e

Browse files
committedAug 23, 2018
Fixed flow error
1 parent c4d8fe0 commit 82cf85e

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed
 

‎README.md

+10-16
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,19 @@ const customer = form.mutators.pop('customers')
4545
## Table of Contents
4646

4747
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
48-
4948
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
50-
5149
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5250

53-
- [🏁 Final Form Arrays](#%F0%9F%8F%81-final-form-arrays)
54-
- [Installation](#installation)
55-
- [Usage](#usage)
56-
- [Table of Contents](#table-of-contents)
57-
- [Mutators](#mutators)
58-
- [`form.mutators.insert(name: string, index: number, value: any) => undefined`](#formmutatorsinsertname-string-index-number-value-any--undefined)
59-
- [`form.mutators.move(name: string, from: number, to: number) => undefined`](#formmutatorsmovename-string-from-number-to-number--undefined)
60-
- [`form.mutators.pop(name: string) => any`](#formmutatorspopname-string--any)
61-
- [`form.mutators.push(name: string, value: any) => void`](#formmutatorspushname-string-value-any--void)
62-
- [`form.mutators.remove(name: string, index: number) => any`](#formmutatorsremovename-string-index-number--any)
63-
- [`form.mutators.shift(name: string) => any`](#formmutatorsshiftname-string--any)
64-
- [`form.mutators.swap(name: string, indexA: number, indexB: number) => void`](#formmutatorsswapname-string-indexa-number-indexb-number--void)
65-
- [`form.mutators.update(name: string, index: number, value: any) => void`](#formmutatorsupdatename-string-index-number-value-any--void)
66-
- [`form.mutators.unshift(name: string, value: any) => void`](#formmutatorsunshiftname-string-value-any--void)
51+
- [Mutators](#mutators)
52+
- [`form.mutators.insert(name: string, index: number, value: any) => undefined`](#formmutatorsinsertname-string-index-number-value-any--undefined)
53+
- [`form.mutators.move(name: string, from: number, to: number) => undefined`](#formmutatorsmovename-string-from-number-to-number--undefined)
54+
- [`form.mutators.pop(name: string) => any`](#formmutatorspopname-string--any)
55+
- [`form.mutators.push(name: string, value: any) => void`](#formmutatorspushname-string-value-any--void)
56+
- [`form.mutators.remove(name: string, index: number) => any`](#formmutatorsremovename-string-index-number--any)
57+
- [`form.mutators.shift(name: string) => any`](#formmutatorsshiftname-string--any)
58+
- [`form.mutators.swap(name: string, indexA: number, indexB: number) => void`](#formmutatorsswapname-string-indexa-number-indexb-number--void)
59+
- [`form.mutators.update(name: string, index: number, value: any) => void`](#formmutatorsupdatename-string-index-number-value-any--void)
60+
- [`form.mutators.unshift(name: string, value: any) => void`](#formmutatorsunshiftname-string-value-any--void)
6761

6862
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
6963

‎src/update.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// @flow
22
import type { MutableState, Mutator, Tools } from 'final-form'
33

4-
type Args = [string, number, any]
5-
64
const update: Mutator = (
7-
[name, index, value]: Args,
5+
[name, index, value]: any[],
86
state: MutableState,
97
{ changeValue }: Tools
108
) => {

0 commit comments

Comments
 (0)
Please sign in to comment.