mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 10:56:10 +01:00 
			
		
		
		
	Fix some typescript issues (#32586)
Fixes around 30 or so typescript errors. No runtime changes.
This commit is contained in:
		| @@ -2,7 +2,7 @@ import {sleep} from '../utils.ts'; | ||||
|  | ||||
| const {appSubUrl} = window.config; | ||||
|  | ||||
| export async function logoutFromWorker() { | ||||
| export async function logoutFromWorker(): Promise<void> { | ||||
|   // wait for a while because other requests (eg: logout) may be in the flight | ||||
|   await sleep(5000); | ||||
|   window.location.href = `${appSubUrl}/`; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user