mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	Enable Typescript noImplicitAny (#33322)
				
					
				
			Enable `noImplicitAny` and fix all issues. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -255,12 +255,12 @@ export function loadElem(el: LoadableElement, src: string) { | ||||
| // it can't use other transparent polyfill patches because PaleMoon also doesn't support "addEventListener(capture)" | ||||
| const needSubmitEventPolyfill = typeof SubmitEvent === 'undefined'; | ||||
|  | ||||
| export function submitEventSubmitter(e) { | ||||
| export function submitEventSubmitter(e: any) { | ||||
|   e = e.originalEvent ?? e; // if the event is wrapped by jQuery, use "originalEvent", otherwise, use the event itself | ||||
|   return needSubmitEventPolyfill ? (e.target._submitter || null) : e.submitter; | ||||
| } | ||||
|  | ||||
| function submitEventPolyfillListener(e) { | ||||
| function submitEventPolyfillListener(e: DOMEvent<Event>) { | ||||
|   const form = e.target.closest('form'); | ||||
|   if (!form) return; | ||||
|   form._submitter = e.target.closest('button:not([type]), button[type="submit"], input[type="submit"]'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user