Skip to content

Commit 8301370

Browse files
markeriksonsweetliquidmsutkowski
authored
Add simpler unwrapping of createAsyncThunk promises (#970)
Co-authored-by: Sweet Liquid <[email protected]> Co-authored-by: Matt Sutkowski <[email protected]>
1 parent 6f6b48b commit 8301370

File tree

6 files changed

+413
-1540
lines changed

6 files changed

+413
-1540
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ jobs:
2121
- uses: c-hive/gha-npm-cache@v1
2222

2323
- name: Install deps
24-
run: npm ci --ignore-scripts
24+
run: npm ci
2525

2626
- name: Pack (including Prepare)
2727
run: npm pack
28+
env:
29+
NODE_ENV: 'production' # this doesn't actually matter, so just set it to production
2830

2931
- uses: actions/upload-artifact@v2
3032
with:

etc/redux-toolkit.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export type AsyncThunkAction<Returned, ThunkArg, ThunkApiConfig extends AsyncThu
8585
abort(reason?: string): void;
8686
requestId: string;
8787
arg: ThunkArg;
88+
unwrap(): Promise<Returned>;
8889
};
8990

9091
// @public

0 commit comments

Comments
 (0)