commit | daafb70b35e53dcd5d8b54b4fe7952a6c8b6b042 | [log] [tgz] |
---|---|---|
author | Adrià Vilanova Martínez <me@avm99963.com> | Fri Dec 06 20:04:51 2024 +0100 |
committer | Adrià Vilanova Martínez <me@avm99963.com> | Fri Dec 06 20:05:53 2024 +0100 |
tree | 4aea2ddd8191f02196481ebdb6e38658b552198a | |
parent | 9c418abad38d77f34c93ba5da0c92645b108149e [diff] |
fix(response-modifier): add explicit `any` type The Typescript compiler would sometimes complain that `res` had implicitly the `any` type. This commit fixes this issue. Change-Id: Ic18492928ad3c828353511c3fddef7b89efd118c
diff --git a/src/xhrInterceptor/responseModifiers/loadMoreThread.ts b/src/xhrInterceptor/responseModifiers/loadMoreThread.ts index 06613d5..d83d402 100644 --- a/src/xhrInterceptor/responseModifiers/loadMoreThread.ts +++ b/src/xhrInterceptor/responseModifiers/loadMoreThread.ts
@@ -123,7 +123,7 @@ }, /* authenticated = */ true, authuser, - ).then((res) => { + ).then((res: any) => { const thread = new ThreadModel(res[1]); return thread.getMessageOrGapModels(); });