Skip to content

Commit 8c72825

Browse files
istarkovrenatorib
authored andcommitted
Improve Updater<T> inference (#90)
1 parent 5b677b0 commit 8c72825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js.flow

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as React from 'react'
44

55
/* Utils */
66

7-
type Updater<T> = (value: T | ((updater: T) => T)) => void
7+
type Updater<T> = (value: ((updater: T) => T) | T) => void
88

99
/* Active */
1010

0 commit comments

Comments
 (0)