Skip to content

Gradients have too strict types? #282

@TomiS

Description

@TomiS

I'm trying to update to latest version of this lib (on ReScript 12), but I'm encountering a problem. linearGradient no longer accepts a variable of type Types.Color.t. I think it's because all gradients now expect type [Types.Color.t | Types.Var.t] (for example here).

I think the solution is to relax the type to
[> Types.Color.t | Types.Var.t]

I was not able to confirm this though because changing one or two of those required changing other stuff too and my env was not properly setup for debugging. But maybe worth considering?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions