mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-30 18:36:22 +01:00 
			
		
		
		
	Fix a number of typescript issues (#32459)
Fixes 69 typescript errors found in the `admin` and `markup` folders. --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -1,12 +1,12 @@ | ||||
| import {displayError} from './common.ts'; | ||||
|  | ||||
| function targetElement(el) { | ||||
| function targetElement(el: Element) { | ||||
|   // The target element is either the current element if it has the | ||||
|   // `is-loading` class or the pre that contains it | ||||
|   return el.classList.contains('is-loading') ? el : el.closest('pre'); | ||||
| } | ||||
|  | ||||
| export async function renderMath() { | ||||
| export async function renderMath(): void { | ||||
|   const els = document.querySelectorAll('.markup code.language-math'); | ||||
|   if (!els.length) return; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user