From 29aac096415bdf193138885ecff7d144e479d859 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Thu, 10 Nov 2022 21:11:38 -0600 Subject: [PATCH] Add types to function parameters --- src/platform/web/dom/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/web/dom/utils.ts b/src/platform/web/dom/utils.ts index 4c17f1af..8013b491 100644 --- a/src/platform/web/dom/utils.ts +++ b/src/platform/web/dom/utils.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -export function domEventAsPromise(element, successEvent): Promise { +export function domEventAsPromise(element: HTMLElement, successEvent: string): Promise { return new Promise((resolve, reject) => { let detach; const handleError = evt => {