77} from 'aurelia-pal' ;
88export declare interface CssAnimation {
99 className : string ;
10- element : HTMLElement ;
10+ element : Element ;
1111}
1212
1313/**
@@ -31,7 +31,7 @@ export declare class CssAnimator {
3131 * @param options options for the animation (duration, easing, ...)
3232 * @returns Resolved when the animation is done
3333 */
34- animate ( element : HTMLElement | Array < HTMLElement > , className : string ) : Promise < boolean > ;
34+ animate ( element : Element | Array < Element > , className : string ) : Promise < boolean > ;
3535
3636 /**
3737 * Run a sequence of animations one after the other.
@@ -45,14 +45,14 @@ export declare class CssAnimator {
4545 * @param element Element to animate
4646 * @returns Resolved when the animation is done
4747 */
48- enter ( element : HTMLElement ) : Promise < boolean > ;
48+ enter ( element : Element ) : Promise < boolean > ;
4949
5050 /**
5151 * Execute a 'leave' animation on an element
5252 * @param element Element to animate
5353 * @returns Resolved when the animation is done
5454 */
55- leave ( element : HTMLElement ) : Promise < boolean > ;
55+ leave ( element : Element ) : Promise < boolean > ;
5656
5757 /**
5858 * Add a class to an element to trigger an animation.
@@ -61,7 +61,7 @@ export declare class CssAnimator {
6161 * @param suppressEvents Indicates whether or not to suppress animation events.
6262 * @returns Resolved when the animation is done
6363 */
64- removeClass ( element : HTMLElement , className : string , suppressEvents ?: boolean ) : Promise < boolean > ;
64+ removeClass ( element : Element , className : string , suppressEvents ?: boolean ) : Promise < boolean > ;
6565
6666 /**
6767 * Add a class to an element to trigger an animation.
@@ -70,7 +70,7 @@ export declare class CssAnimator {
7070 * @param suppressEvents Indicates whether or not to suppress animation events.
7171 * @returns Resolved when the animation is done
7272 */
73- addClass ( element : HTMLElement , className : string , suppressEvents ?: boolean ) : Promise < boolean > ;
73+ addClass ( element : Element , className : string , suppressEvents ?: boolean ) : Promise < boolean > ;
7474}
7575
7676/* Public API End */
0 commit comments