This change corrects all uses of `sendWithPromise` to apply the expected
type parameter.
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/7c7425f8dd87005b3ab4c3963983278c81bd5dc1https://chromium.googlesource.com/chromium/src/+/2035199d62968c047e1b7d72b86cafe01af7d346
commit 7c7425f8dd87005b3ab4c3963983278c81bd5dc1
Author: dpapad <dpapad@chromium.org>
Date: Tue Mar 24 16:56:36 2026 -0700
WebUI: Add type parameter to sendWithPromise(), part 2.
The parameter indicates the payload type of the returned Promise as
follows: export function sendWithPromise<T>(...): Promise<T> {...}
In this part making the type parameter required by removing the "= any"
fallback.
Bug: 494464740
Change-Id: I153bd07ffcc2b16d4c5caa3c9c0730cd2177d87b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7690239
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1604484}
commit 2035199d62968c047e1b7d72b86cafe01af7d346
Author: dpapad <dpapad@chromium.org>
Date: Tue Mar 24 13:41:16 2026 -0700
WebUI: Add type parameter to sendWithPromise(), part 1.
The parameter indicates the payload type of the returned Promise as
follows: export function sendWithPromise<T>(...): Promise<T> {...}
In this part fixing all newly surfaced type errors. The parameter is
kept as optional (using 'T = any') to prevent any race conditions with
other CLs that can possibly introduce violations. It will be made
required in the follow-up.
This is part of the effort to reduce and eventually ban the use of
TypeScript's 'any' across the codebase.
Bug: 494464740
Change-Id: I51025cebf857d651fb0fb813d9b63ef85d481433
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7689639
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1604358}