Skip to content

Inconsistent type definition of _scale_._transform_ #2451

Description

@mwaibel-go

When specifying scale.interval, scale.transform is automatically set. (See related discussion 2450 with an example).

In order to disable the implicit transform, we need to set it to null. However, the corresponding TypeScript definition specifies:

transform?: (t: any) => any;

So null is not assignable here.

Related: #2423

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions