Fixes 69 typescript errors found in the `admin` and `markup` folders. --------- Co-authored-by: Giteabot <teabot@gitea.io>
Many existing tests were quite hacky, these could be improved later. <details>  </details>