From 9d86135c7bcff90e749d2cf0c346852a5273125c Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Thu, 15 Feb 2018 15:40:44 -0800 Subject: [PATCH] dispatchEvent returns boolean (#5117) --- lib/utils/templatize.html | 2 ++ types/lib/utils/templatize.d.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/utils/templatize.html b/lib/utils/templatize.html index 1b6dd044b0..67b4a53179 100644 --- a/lib/utils/templatize.html +++ b/lib/utils/templatize.html @@ -246,8 +246,10 @@ * dispatch events safely no-op. * * @param {Event} event Event to dispatch + * @return {boolean} Always true. */ dispatchEvent(event) { // eslint-disable-line no-unused-vars + return true; } } diff --git a/types/lib/utils/templatize.d.ts b/types/lib/utils/templatize.d.ts index 370ff7b4d2..df7ae0ce4b 100644 --- a/types/lib/utils/templatize.d.ts +++ b/types/lib/utils/templatize.d.ts @@ -71,8 +71,9 @@ declare class TemplateInstanceBase extends * dispatch events safely no-op. * * @param event Event to dispatch + * @returns Always true. */ - dispatchEvent(event: Event|null): any; + dispatchEvent(event: Event|null): boolean; } declare namespace templateInfo {