Skip to content

Commit de25417

Browse files
committed
chore: upgrade throttle debounce type
1 parent 8d15d6b commit de25417

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@types/node": "20.14.11",
4646
"@types/object-hash": "3.0.6",
4747
"@types/subset-font": "1.4.3",
48-
"@types/throttle-debounce": "2.1.0",
48+
"@types/throttle-debounce": "5.0.2",
4949
"@vitest/coverage-v8": "2.1.9",
5050
"ajv": "8.12.0",
5151
"autoprefixer": "10.4.20",

frontend/src/ts/commandline/commandline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ const modal = new AnimatedModal({
712712
input.addEventListener(
713713
"input",
714714
debounce(50, async (e) => {
715-
inputValue = (e.target as HTMLInputElement).value;
715+
inputValue = ((e as InputEvent).target as HTMLInputElement).value;
716716
if (subgroupOverride === null) {
717717
if (Config.singleListCommandLine === "on") {
718718
usingSingleList = true;

frontend/src/ts/elements/custom-background-filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ $(".section[data-config-name='customBackgroundFilter'] .opacity input").on(
146146
$(".section[data-config-name='customBackgroundFilter'] input").on(
147147
"input",
148148
() => {
149-
void debouncedSave();
149+
debouncedSave();
150150
}
151151
);
152152

frontend/src/ts/modals/google-sign-up.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ async function setup(modalEl: HTMLElement): Promise<void> {
202202
return;
203203
} else {
204204
nameIndicator.show("checking");
205-
void checkNameDebounced();
205+
checkNameDebounced();
206206
}
207207
});
208208
}

frontend/src/ts/pages/login.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ $(".page.pageLogin .register.side .usernameInput").on("input", () => {
275275
return;
276276
} else {
277277
nameIndicator.show("checking");
278-
void checkNameDebounced();
278+
checkNameDebounced();
279279
}
280280
}, 1);
281281
});

frontend/src/ts/test/test-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ ConfigEvent.subscribe((eventKey, eventValue, nosave) => {
135135
(eventKey === "language" || eventKey === "funbox") &&
136136
Config.funbox.includes("zipf")
137137
) {
138-
void debouncedZipfCheck();
138+
debouncedZipfCheck();
139139
}
140140
if (eventKey === "fontSize" && !nosave) {
141141
OutOfFocus.hide();

frontend/src/ts/utils/simple-modal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export class SimpleModal {
377377

378378
if (input.validation?.isValid !== undefined) {
379379
indicator.show("checking");
380-
void debouceIsValid(value);
380+
debouceIsValid(value);
381381
return;
382382
}
383383

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)