go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.24k stars 5.5k forks source link

Fix some typescript issues #32586

Closed silverwind closed 18 hours ago

silverwind commented 1 day ago

Fixes around 30 or so typescript errors. No runtime changes.

silverwind commented 21 hours ago

FYI, in case anyone is wondering about the no-undef TODO:

Typescript fully covers this rule and recommends it to be disabled. Currently the rule raises false-positives for global ambient type annotations like JQuery. So my plan is to fix all tsc errors and then enable tsc and disable this rule. Until then, type annotations like JQuery can only be used with a accompanying // eslint-disable-line.