aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-10-31 15:57:40 +0100
committerGitHub <noreply@github.com>2024-10-31 14:57:40 +0000
commit810782302652d73c4f7249c4c3df8a7e85bae5f0 (patch)
treeed981d0bf2402854c2b22531034d082df3f0f355 /routers/api/v1
parent5e6523aa57771f672dc0e8fb06431d4032308f23 (diff)
downloadgitea-810782302652d73c4f7249c4c3df8a7e85bae5f0.tar.gz
gitea-810782302652d73c4f7249c4c3df8a7e85bae5f0.zip
Fix a number of typescript issues (#32308)
- Prefer [window.location.assign](https://developer.mozilla.org/en-US/docs/Web/API/Location/assign) over assigning to [window.location](https://developer.mozilla.org/en-US/docs/Web/API/Window/location) which typescript does not like. This works in all browsers including PaleMoon. - Fix all typescript issues in `web_src/js/webcomponents`, no behaviour changes. - ~~Workaround bug in `@typescript-eslint/no-unnecessary-type-assertion` rule.~~ - Omit vendored file from type checks. - `tsc` error count is reduce by 53 with these changes.
Diffstat (limited to 'routers/api/v1')
0 files changed, 0 insertions, 0 deletions