gitea/web_src/js/utils
silverwind d061f6b70a
Change typescript `module` to `nodenext` (#32757)
Typescript 5.7 changed semantics around JSON imports and `nodenext` is
now [treated
differently](https://devblogs.microsoft.com/typescript/announcing-typescript-5-7-beta/#validated-json-imports-in---module-nodenext)
than `node16` for JSON imports and it requires the import attribute, so
change the value to that and add the attribute to eliminate this
typescript error.


[`moduleResolution`](https://www.typescriptlang.org/tsconfig/#moduleResolution)
is treated as an alias when `module` is `nodenext`, so we don't need to
specify it.

Also see https://github.com/microsoft/TypeScript/issues/60589. It
appears the next Typescript release will fix this for `node16`, but I
guess it'll still be good to switch to `nodenext`.
2024-12-10 08:44:39 +00:00
..
color.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
color.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
dom.test.ts Bypass vitest bug (#32647) 2024-11-26 23:10:45 +08:00
dom.ts Make frontend unit test code could know it is in testing (#32656) 2024-11-28 01:40:32 +08:00
image.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
image.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00
match.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
match.ts Change typescript `module` to `nodenext` (#32757) 2024-12-10 08:44:39 +00:00
testhelper.ts Make frontend unit test code could know it is in testing (#32656) 2024-11-28 01:40:32 +08:00
time.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
time.ts Fix typescript errors in Vue files, fix regression in "Recent Commits" chart (#32649) 2024-12-08 02:58:18 +00:00
url.test.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
url.ts Fix a number of Typescript issues (#31877) 2024-08-28 18:32:38 +02:00