aboutsummaryrefslogtreecommitdiffstats
path: root/types.d.ts
Commit message (Collapse)AuthorAgeFilesLines
* Move web globals to `web_src/js/globals.d.ts` (#31943)silverwind2024-08-301-61/+0
| | | This file serves exclusively to support `web_src/js`, so move it there.
* Fix a number of Typescript issues (#31877)silverwind2024-08-281-10/+40
| | | | Typescript error count is reduced from 633 to 540 with this. No runtime changes except in test code.
* Add types to various low-level functions (#31781)silverwind2024-08-101-0/+9
| | | | | | | | Adds types to various low-level modules. All changes are type-only, no runtime changes. `tsc` now reports 38 less errors. One problem was that `@types/sortablejs` does not accept promise return in its functions which triggered the linter, so I disabled the rules on those line.
* Add types to fetch,toast,bootstrap,svg (#31627)silverwind2024-07-251-0/+4
| | | | Reduce `tsc` error count by 53. None of the changes has any runtime effect.
* Add types for js globals (#31586)silverwind2024-07-111-0/+14
| | | | Adds types for `window.config` and jQuery/htmx globals, eliminating 48 `tsc` errors.
* Convert frontend code to typescript (#31559)silverwind2024-07-071-0/+4
None of the frontend js/ts files was touched besides these two commands (edit: no longer true, I touched one file in https://github.com/go-gitea/gitea/pull/31559/commits/61105d0618e285d97e95044bfb64415f364a4526 because of a deprecation that was not showing before the rename). `tsc` currently reports 778 errors, so I have disabled it in CI as planned. Everything appears to work fine.