chore: fix typescript errors

This commit is contained in:
janishutz committed 2026-09-10 15:54:21 +02:00
1 parent 9652003018
commit ea67e6984a
3 files changed
+6 -4

No files matched your search

+4 -1
View File
@@ -22,7 +22,10 @@ export const check = async () => {
} }
if ( !status && config.get().checkAutoRedirect ) { if ( !status && config.get().checkAutoRedirect ) {
location.href = getRedirect(); const redir = getRedirect();
if ( redir )
location.href = redir;
} }
return status; return status;
+2
View File
@@ -44,6 +44,8 @@ const wrapper = async ( url: string, opts: RequestInit, authErrorResolution?: Au
} else { } else {
throw new AuthError( 'ERR_USER_UNAUTHORIZED' ); throw new AuthError( 'ERR_USER_UNAUTHORIZED' );
} }
return res;
} else { } else {
return res; return res;
} }
-3
View File
@@ -6,9 +6,6 @@
"target": "ES2022", "target": "ES2022",
"skipLibCheck": true, "skipLibCheck": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"types": [
"node"
],
"module": "NodeNext", "module": "NodeNext",
"moduleResolution": "NodeNext" "moduleResolution": "NodeNext"
}, },