Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit215a078

Browse files
committed
Update tests to usevoid instead ofundefined
1 parent8eb57d5 commit215a078

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎tests/typings/index.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function testAsyncPayload() {
6666
}
6767

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

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

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

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

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

149149
conststarted=async.started();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp