Skip to content

Commit f33e457

Browse files
committed
Replace VoidFunction with () => void
1 parent 84a40ad commit f33e457

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pure.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function Fallback() {
3939

4040
function resultContainer<TValue>() {
4141
const results: Array<{ value?: TValue; error?: Error }> = []
42-
const resolvers: Array<VoidFunction> = []
42+
const resolvers: Array<() => void> = []
4343

4444
const result = {
4545
get all() {
@@ -65,7 +65,7 @@ function resultContainer<TValue>() {
6565

6666
return {
6767
result,
68-
addResolver: (resolver: VoidFunction) => {
68+
addResolver: (resolver: () => void) => {
6969
resolvers.push(resolver)
7070
},
7171
setValue: (value: TValue) => updateResult(value),

0 commit comments

Comments
 (0)