Skip to content

Change signature of animationComplete from AnimationCallbackEvent to be more precise #65613

@goulaheau

Description

@goulaheau

Which @angular/* package(s) are relevant/related to the feature request?

core

Description

Hi, we are having issue with the signature of animationComplete from AnimationCallbackEvent.

It's typed as Function and it's an error from this rule https://typescript-eslint.io/rules/no-unsafe-call/

So we have to disable this rule to be able to call this function.

Proposed solution

I think a better type would be : () => void.

Alternatives considered

No other alternatives considered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions