gitea/web_src/js
silverwind 46d7adefe0
Enable TypeScript `strictNullChecks` (#35843)
A big step towards enabling strict mode in Typescript.

There was definitely a good share of potential bugs while refactoring
this. When in doubt, I opted to keep the potentially broken behaviour.
Notably, the `DOMEvent` type is gone, it was broken and we're better of
with type assertions on `e.target`.

---------

Signed-off-by: silverwind <me@silverwind.io>
Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-12-03 02:13:16 +07:00
..
components Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
features Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
markup Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
modules Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
render Update eslint to v9 (#35485) 2025-09-14 19:15:06 +07:00
standalone Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
utils Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
vendor Fix areYouSure confirm (#32941) 2024-12-21 12:11:22 +07:00
webcomponents Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
bootstrap.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +07:00
bootstrap.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
globals.d.ts Merge index.js (#34963) 2025-07-06 04:55:16 +07:00
globals.ts Merge index.js (#34963) 2025-07-06 04:55:16 +07:00
htmx.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
index-domready.ts Add "Go to file", "Delete Directory" to repo file list page (#35911) 2025-11-30 11:58:15 +07:00
index.ts Load jQuery as early as possible to support custom scripts (#35926) 2025-11-12 00:11:46 +07:00
svg.test.ts Remove "class-name" from svg icon (#33540) 2025-02-09 22:39:54 +07:00
svg.ts Fix a number of `strictNullChecks`-related issues (#35795) 2025-11-03 20:17:06 +07:00
types.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
utils.test.ts Use `git diff-tree` for `DiffFileTree` on diff pages (#33514) 2025-02-28 00:58:25 +07:00
utils.ts Enable TypeScript `strictNullChecks` (#35843) 2025-12-03 02:13:16 +07:00
vitest.setup.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +07:00