You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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`.
4 months ago
..
color.test.ts Convert frontend code to typescript (#31559) 9 months ago
color.ts Fix a number of Typescript issues (#31877) 7 months ago
dom.test.ts Bypass vitest bug (#32647) 4 months ago
dom.ts Make frontend unit test code could know it is in testing (#32656) 4 months ago
image.test.ts Convert frontend code to typescript (#31559) 9 months ago
image.ts Fix a number of Typescript issues (#31877) 7 months ago
match.test.ts Convert frontend code to typescript (#31559) 9 months ago
match.ts Change typescript `module` to `nodenext` (#32757) 4 months ago
testhelper.ts Make frontend unit test code could know it is in testing (#32656) 4 months ago
time.test.ts Convert frontend code to typescript (#31559) 9 months ago
time.ts Fix typescript errors in Vue files, fix regression in "Recent Commits" chart (#32649) 4 months ago
url.test.ts Convert frontend code to typescript (#31559) 9 months ago
url.ts Fix a number of Typescript issues (#31877) 7 months ago