Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public variable for "renderer" has incorrect type definition #247

Open
ketz opened this issue May 17, 2024 · 0 comments
Open

Public variable for "renderer" has incorrect type definition #247

ketz opened this issue May 17, 2024 · 0 comments

Comments

@ketz
Copy link

ketz commented May 17, 2024

In lottie-player.ts, on line 196, "renderer" is defined as type "svg", but that is its default value, not the variable type.
It should be defined as :string

` /**

  • Renderer to use.
    */
    @Property({ type: String })
    public renderer: "svg" = "svg";`

The current definition is triggering an error when trying to set the variable dynamically on a new LottiePlayer() object - "Type 'string' is not assignable to type '"svg"'"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant