diff --git a/packages/animations/browser/src/render/web_animations/dom_animation.ts b/packages/animations/browser/src/render/web_animations/dom_animation.ts index 3004695a9e..f1d825af34 100644 --- a/packages/animations/browser/src/render/web_animations/dom_animation.ts +++ b/packages/animations/browser/src/render/web_animations/dom_animation.ts @@ -6,7 +6,15 @@ * found in the LICENSE file at https://angular.io/license */ -export interface DOMAnimation { +/** + * DOMAnimation represents the Animation Web API. + * + * It is an external API by the browser, and must thus use "declare interface", + * to prevent renaming by Closure Compiler. + * + * @see https://developer.mozilla.org/de/docs/Web/API/Animation + */ +export declare interface DOMAnimation { cancel(): void; play(): void; pause(): void;