refactor: more TS definitions

This commit is contained in:
Tristan Yang
2022-07-21 18:37:47 +08:00
parent b79abcfa9f
commit 21dd975145
5 changed files with 14 additions and 23 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ const baseQuery = fetchBaseQuery({
}
});
let waitingForRenew = null;
let waitingForRenew: null | any = null;
const baseQueryWithTokenCheck = async (args, api, extraOptions) => {
if (waitingForRenew) {
await waitingForRenew;