1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-08-14 10:45:28 +08:00

Add types to various low-level functions ()

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.
This commit is contained in:
silverwind
2024-08-10 11:46:48 +02:00
committed by GitHub
parent 9633f336c8
commit 32075d2880
13 changed files with 123 additions and 77 deletions

@ -196,7 +196,7 @@ async function initIssuePinSort() {
createSortable(pinDiv, {
group: 'shared',
onEnd: pinMoveEnd,
onEnd: pinMoveEnd, // eslint-disable-line @typescript-eslint/no-misused-promises
});
}