Skip to content

Commit 3d62951

Browse files
committed
flow fixes
1 parent a593da7 commit 3d62951

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package.json

src/index.js.flow

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type ActiveChange = ({| isActive: boolean |}) => void
1212

1313
type ActiveRender = ({|
1414
isActive: boolean,
15-
bindActive: {| onMouseDown: () => void, onMouseUp: () => void |},
15+
bind: {| onMouseDown: () => void, onMouseUp: () => void |},
1616
|}) => React.Node
1717

1818
declare export var Active: React.ComponentType<
@@ -43,11 +43,11 @@ declare export var Counter: React.ComponentType<
4343

4444
/* Focus */
4545

46-
type FocusChange = ({| isFocus: boolean |}) => void
46+
type FocusChange = ({| isFocused: boolean |}) => void
4747

4848
type FocusRender = ({|
49-
isFocus: boolean,
50-
bindFocus: {| onFocusIn: () => void, onFocusOut: () => void |},
49+
isFocused: boolean,
50+
bind: {| onFocus: () => void, onBlur: () => void |},
5151
|}) => React.Node
5252

5353
declare export var Focus: React.ComponentType<
@@ -84,11 +84,11 @@ declare export class Form<T: { [string]: string }> extends React.Component<
8484

8585
/* Hover */
8686

87-
type HoverChange = ({| isHover: boolean |}) => void
87+
type HoverChange = ({| isHovered: boolean |}) => void
8888

8989
type HoverRender = ({|
90-
isHover: boolean,
91-
bindHover: {| onMouseEnter: () => void, onMouseLeave: () => void |},
90+
isHovered: boolean,
91+
bind: {| onMouseEnter: () => void, onMouseLeave: () => void |},
9292
|}) => React.Node
9393

9494
declare export var Hover: React.ComponentType<
@@ -119,7 +119,7 @@ type ListRender<T> = ({|
119119
list: $ReadOnlyArray<T>,
120120
first: () => T | void,
121121
last: () => T | void,
122-
setList: ($ReadOnlyArray<T>) => void,
122+
set: Updater<T>,
123123
push: (value: T) => void,
124124
pull: (predicate: (T) => boolean) => void,
125125
sort: (compare: (a: T, b: T) => -1 | 0 | 1) => void,
@@ -232,7 +232,7 @@ type ValueChange<T> = ({| value: T |}) => void
232232

233233
type ValueRender<T> = ({|
234234
value: T,
235-
setValue: T => void,
235+
set: Updater<T>,
236236
|}) => React.Node
237237

238238
type ValueProps<T> =

0 commit comments

Comments
 (0)