Skip to content

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

@ketz

Description

@ketz

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"'"

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