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 => {