gitea
gitea copied to clipboard
Enable Typescript `strictFunctionTypes`
- Enable strictFunctionTypes
- Introduce
DOMEventhelper type which setse.target. Surely not totally correct with thatPartialbut seems to work. - Various type-related refactors, change objects in
eventsource.sharedworker.tstoMap.
There is some weird deprecation showing up on jQuery .on:
/home/runner/work/gitea/gitea/web_src/js/features/repo-settings.ts
125:25 error `on` is deprecated. Deprecated. Use \`{@link JQuery.Event }\` in place of \`{@link JQueryEventObject }\` @typescript-eslint/no-deprecated
134:31 error `on` is deprecated. Deprecated. Use \`{@link JQuery.Event }\` in place of \`{@link JQueryEventObject }\` @typescript-eslint/no-deprecated
I have no idea how to resolve, will disable the lint for now, to be refactored without jQuery later.