Skip to content

Commit 28035c5

Browse files
committed
fix default import
1 parent 6827e9d commit 28035c5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/index.d.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// tslint:disable no-console
22

33
import { Config, createForm, AnyObject } from 'final-form'
4-
import * as arrayMutators from './index'
4+
import arrayMutators from './index'
55
import { Mutators } from './index'
66

77
const onSubmit: Config['onSubmit'] = (values, callback) => {}

src/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const shift: Mutator
99
export const swap: Mutator
1010
export const unshift: Mutator
1111

12-
interface DefaultType {
12+
export interface DefaultType {
1313
insert: Mutator
1414
move: Mutator
1515
pop: Mutator
@@ -20,7 +20,8 @@ interface DefaultType {
2020
unshift: Mutator
2121
}
2222

23-
export default DefaultType
23+
declare const d: DefaultType
24+
export default d
2425

2526
/** The shape of the mutators once final-form has bound them to state */
2627
export interface Mutators {

0 commit comments

Comments
 (0)