File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ module.exports = {
55
55
description : 'Generates table of contents in README' ,
56
56
script : 'doctoc README.md'
57
57
} ,
58
- copyTypes : npsUtils . copy ( 'src/*.js.flow dist' ) ,
58
+ copyTypes : npsUtils . copy ( 'src/*.js.flow src/*.d.ts dist' ) ,
59
59
lint : {
60
60
description : 'lint the entire project' ,
61
61
script : 'eslint .'
Original file line number Diff line number Diff line change 5
5
"main" : " dist/final-form-arrays.cjs.js" ,
6
6
"jsnext:main" : " dist/final-form-arrays.es.js" ,
7
7
"module" : " dist/final-form-arrays.es.js" ,
8
+ "typings" : " dist/index.d.js" ,
8
9
"files" : [" dist" ],
9
10
"scripts" : {
10
11
"start" : " nps" ,
Original file line number Diff line number Diff line change
1
+ import { Mutator } from 'final-form'
2
+
3
+ type DefaultType = { [ key : string ] : Mutator }
4
+
5
+ export default DefaultType
6
+
7
+ /** The shape of the mutators once final-form has bound them to state */
8
+ export type Mutators = {
9
+ insert : ( name : string , index : number , value : any ) => void
10
+ move : ( name : string , from : number , to : number ) => void
11
+ pop : ( name : string ) => any
12
+ push : ( name : string , value : any ) => void
13
+ remove : ( name : string , index : number ) => any
14
+ shift : ( name : string ) => any
15
+ swap : ( name : string , indexA : number , indexB : number ) => void
16
+ unshift : ( name : string , value : any ) => void
17
+ }
You can’t perform that action at this time.
0 commit comments