This was a poorly typed attempt to mimic TypeScript's index signatures, which we can use instead. This eliminates a very strange type that we were exposing to users, but not re-exporting through our public API. Fixes #4483
23 lines
612 B
TypeScript
23 lines
612 B
TypeScript
export class CssAnimationOptions {
|
|
/** initial styles for the element */
|
|
fromStyles: {[key: string]: any};
|
|
|
|
/** destination styles for the element */
|
|
toStyles: {[key: string]: any};
|
|
|
|
/** classes to be added to the element */
|
|
classesToAdd: string[] = [];
|
|
|
|
/** classes to be removed from the element */
|
|
classesToRemove: string[] = [];
|
|
|
|
/** classes to be added for the duration of the animation */
|
|
animationClasses: string[] = [];
|
|
|
|
/** override the duration of the animation (in milliseconds) */
|
|
duration: number;
|
|
|
|
/** override the transition delay (in milliseconds) */
|
|
delay: number;
|
|
}
|