feat(animations): support function types in transitions
Closes #13538 Closes #13537
This commit is contained in:
6
tools/public_api_guard/core/index.d.ts
vendored
6
tools/public_api_guard/core/index.d.ts
vendored
@ -90,9 +90,9 @@ export declare abstract class AnimationStateMetadata {
|
||||
|
||||
/** @experimental */
|
||||
export declare class AnimationStateTransitionMetadata extends AnimationStateMetadata {
|
||||
stateChangeExpr: string;
|
||||
stateChangeExpr: string | ((fromState: string, toState: string) => boolean);
|
||||
steps: AnimationMetadata;
|
||||
constructor(stateChangeExpr: string, steps: AnimationMetadata);
|
||||
constructor(stateChangeExpr: string | ((fromState: string, toState: string) => boolean), steps: AnimationMetadata);
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
@ -922,7 +922,7 @@ export interface TrackByFn {
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare function transition(stateChangeExpr: string, steps: AnimationMetadata | AnimationMetadata[]): AnimationStateTransitionMetadata;
|
||||
export declare function transition(stateChangeExpr: string | ((fromState: string, toState: string) => boolean), steps: AnimationMetadata | AnimationMetadata[]): AnimationStateTransitionMetadata;
|
||||
|
||||
/** @experimental */
|
||||
export declare const TRANSLATIONS: OpaqueToken;
|
||||
|
Reference in New Issue
Block a user