From b37a6b07b39c8c7827052dc6fb97f490f1e0f514 Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Thu, 18 Nov 2021 17:37:45 +0100 Subject: chore: convert various files to TS (#2246) * convert various files to TS * removed outdated docs/example-feature folder * turn off unicorn/no-empty-file * update eslint config --- src/api/utils/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/utils/auth.ts') diff --git a/src/api/utils/auth.ts b/src/api/utils/auth.ts index 98295d1a4..899881e88 100644 --- a/src/api/utils/auth.ts +++ b/src/api/utils/auth.ts @@ -31,7 +31,7 @@ export const prepareAuthRequest = ( export const sendAuthRequest = ( url: RequestInfo, - options: { method: string } | undefined, + options?: { method: string; headers?: any; body?: any }, auth?: boolean, ) => // @ts-expect-error Argument of type '{ method: string; } & { mode: string; headers: any; }' is not assignable to parameter of type 'RequestInit | undefined'. -- cgit v1.2.3-70-g09d2