Skip to content

TRBL is not exported in chart.js #11947

@BramVermeer03

Description

@BramVermeer03

Expected behavior

I am using the type 'TRBL' in my project with a barchart for a custom plugin. This is not exported from chart.js, so now i have to import it from the node_modules. Is it possible to export it from chart.js?

Current behavior

Now my import looks like this:
import { TRBL } from 'node_modules/chart.js/dist/types/geometric';

And it would be nicer to have it like this:
import { TRBL } from 'chart.js';

Reproducible sample

Optional extra steps/info to reproduce

No response

Possible solution

Exporting the type from chart.js it self.

Context

No response

chart.js version

4.4.6

Browser name and version

No response

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: typesTypescript type changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions