Refactor and fix type errors in WI and script modules (#4123)

* remove unnecessary arg passage from WI helper funcs

* remove some typescript red from script.js

* hide in shame

* Add JSDoc to helper functions

* Fix fav_ch_checked not updating

* Move PWA mode match to firstLoadInit

* Fix more type errors and deprecations

* Fix the rest of type errors in script.js

---------

Co-authored-by: RossAscends <124905043+RossAscends@users.noreply.github.com>
This commit is contained in:
Cohee
2025-06-08 19:14:03 +03:00
committed by GitHub
parent 358bbf8622
commit b3c636fe91
3 changed files with 188 additions and 130 deletions
+5
View File
@@ -30,6 +30,11 @@ declare global {
izoomify(options?: any): JQuery;
}
// NPM package doesn't have the 'queue' property in the type definition
interface JQueryTransitOptions {
queue?: boolean;
}
namespace Select2 {
interface Options<Result = DataFormat | GroupedDataFormat, RemoteResult = any> {
/**