Skip to content

Commit

Permalink
fix: useRequest runAsync ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
brickspert committed Nov 16, 2021
1 parent 2d82a3f commit 4e28132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/useRequest/src/Fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class Fetch<TData, TParams extends any[]> {
return Object.assign({}, ...r);
}

async runAsync(...params: TParams) {
async runAsync(...params: TParams): Promise<TData> {
this.count += 1;
const currentCount = this.count;

Expand Down

0 comments on commit 4e28132

Please sign in to comment.