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 {