Skip to content

Commit 215a078

Browse files
committed
Update tests to use void instead of undefined
1 parent 8eb57d5 commit 215a078

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/typings/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function testAsyncPayload() {
6666
}
6767

6868
function testAsyncNoParams() {
69-
const asyncNoParams = actionCreator.async<undefined,
69+
const asyncNoParams = actionCreator.async<void,
7070
{bar: string},
7171
{baz: string}>('ASYNC_NO_PARAMS');
7272

@@ -103,7 +103,7 @@ function testAsyncNoParams() {
103103

104104
function testAsyncNoResult() {
105105
const asyncNoResult = actionCreator.async<{foo: string},
106-
undefined,
106+
void,
107107
{baz: string}>('ASYNC_NO_RESULT');
108108

109109
const started = asyncNoResult.started({foo: 'foo'});
@@ -142,8 +142,8 @@ function testAsyncNoResult() {
142142
}
143143

144144
function testAsyncNoParamsAndResult() {
145-
const async = actionCreator.async<undefined,
146-
undefined,
145+
const async = actionCreator.async<void,
146+
void,
147147
{baz: string}>('ASYNC');
148148

149149
const started = async.started();

0 commit comments

Comments
 (0)