mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	Fix some typescript issues (#32586)
Fixes around 30 or so typescript errors. No runtime changes.
This commit is contained in:
		| @@ -9,7 +9,7 @@ const safeMethods = new Set(['GET', 'HEAD', 'OPTIONS', 'TRACE']); | ||||
| // fetch wrapper, use below method name functions and the `data` option to pass in data | ||||
| // which will automatically set an appropriate headers. For json content, only object | ||||
| // and array types are currently supported. | ||||
| export function request(url: string, {method = 'GET', data, headers = {}, ...other}: RequestOpts = {}) { | ||||
| export function request(url: string, {method = 'GET', data, headers = {}, ...other}: RequestOpts = {}): Promise<Response> { | ||||
|   let body: RequestData; | ||||
|   let contentType: string; | ||||
|   if (data instanceof FormData || data instanceof URLSearchParams) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user