Skip to content

BarChart borderSkipped types wrong #8502

Description

@a47ae

Expected Behavior

I can set borderSkipped for bar charts to false when using typescript.

Current Behavior

The BarOptions interface defines the following type for borderSkippedoption

borderSkipped: 'start' | 'end' | 'left' | 'right' | 'bottom' | 'top';

But the documentation also defines false als possible value.
false also works as expected, so it should be included in the type definition.

Possible Solution

Change the type declaration

Steps to Reproduce

Context

Environment

  • Chart.js version: 3.0.0-beta.11
  • Browser name and version: -
  • Link to your project: -

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions