Skip to content

feat: export TransitionOptions interface #28137

@hoi4

Description

@hoi4

Prerequisites

Describe the Feature Request

Export the TransitionOptions interface and helpful utils like getIonPageElement

Describe the Use Case

I would like to build my own page transition animation. The type of the navAnimation when configuring it via IonicModule.forRoot({ navAnimation: myPageAnimation }) is (baseEl: any, opts?: any) => Animation aka AnimationBuilder.
This is unfortunately not type-safe.

Describe Preferred Solution

I would love to have the same type safety as the default page transitions (e.g. the one for android) which use the TransitionOptions interface. Furthermore exposing utils like in my case specifically getIonPageElement would also be extremely helpful to not have to copy the code into my project.

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanteda good issue for the communitypackage: core@ionic/core packagetype: feature requesta new feature, enhancement, or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions