chore: upgrade throttle debounce type

This commit is contained in:
Miodec 2025-07-04 23:25:01 +02:00
parent 8d15d6b181
commit de2541727a
8 changed files with 12 additions and 12 deletions

View file

@ -45,7 +45,7 @@
"@types/node": "20.14.11",
"@types/object-hash": "3.0.6",
"@types/subset-font": "1.4.3",
"@types/throttle-debounce": "2.1.0",
"@types/throttle-debounce": "5.0.2",
"@vitest/coverage-v8": "2.1.9",
"ajv": "8.12.0",
"autoprefixer": "10.4.20",

View file

@ -712,7 +712,7 @@ const modal = new AnimatedModal({
input.addEventListener(
"input",
debounce(50, async (e) => {
inputValue = (e.target as HTMLInputElement).value;
inputValue = ((e as InputEvent).target as HTMLInputElement).value;
if (subgroupOverride === null) {
if (Config.singleListCommandLine === "on") {
usingSingleList = true;

View file

@ -146,7 +146,7 @@ $(".section[data-config-name='customBackgroundFilter'] .opacity input").on(
$(".section[data-config-name='customBackgroundFilter'] input").on(
"input",
() => {
void debouncedSave();
debouncedSave();
}
);

View file

@ -202,7 +202,7 @@ async function setup(modalEl: HTMLElement): Promise<void> {
return;
} else {
nameIndicator.show("checking");
void checkNameDebounced();
checkNameDebounced();
}
});
}

View file

@ -275,7 +275,7 @@ $(".page.pageLogin .register.side .usernameInput").on("input", () => {
return;
} else {
nameIndicator.show("checking");
void checkNameDebounced();
checkNameDebounced();
}
}, 1);
});

View file

@ -135,7 +135,7 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
(eventKey === "language" || eventKey === "funbox") &&
Config.funbox.includes("zipf")
) {
void debouncedZipfCheck();
debouncedZipfCheck();
}
if (eventKey === "fontSize" && !nosave) {
OutOfFocus.hide();

View file

@ -377,7 +377,7 @@ export class SimpleModal {
if (input.validation?.isValid !== undefined) {
indicator.show("checking");
void debouceIsValid(value);
debouceIsValid(value);
return;
}

10
pnpm-lock.yaml generated
View file

@ -410,8 +410,8 @@ importers:
specifier: 1.4.3
version: 1.4.3
'@types/throttle-debounce':
specifier: 2.1.0
version: 2.1.0
specifier: 5.0.2
version: 5.0.2
'@vitest/coverage-v8':
specifier: 2.1.9
version: 2.1.9(vitest@2.1.9(@types/node@20.14.11)(happy-dom@15.10.2)(sass@1.70.0)(terser@5.42.0))
@ -2999,8 +2999,8 @@ packages:
'@types/swagger-stats@0.95.11':
resolution: {integrity: sha512-npTTS5lv0FmkgKeChxUrp9nTqiFdFP5XRlewfGP7JVeFwV7u1yE0SOUh8eXMrgVLE/mJNJuhGoAoVClHc+rsGA==}
'@types/throttle-debounce@2.1.0':
resolution: {integrity: sha512-5eQEtSCoESnh2FsiLTxE121IiE60hnMqcb435fShf4bpLRjEu1Eoekht23y6zXS9Ts3l+Szu3TARnTsA0GkOkQ==}
'@types/throttle-debounce@5.0.2':
resolution: {integrity: sha512-pDzSNulqooSKvSNcksnV72nk8p7gRqN8As71Sp28nov1IgmPKWbOEIwAWvBME5pPTtaXJAvG3O4oc76HlQ4kqQ==}
'@types/tough-cookie@4.0.5':
resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==}
@ -13049,7 +13049,7 @@ snapshots:
transitivePeerDependencies:
- supports-color
'@types/throttle-debounce@2.1.0': {}
'@types/throttle-debounce@5.0.2': {}
'@types/tough-cookie@4.0.5': {}