Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] (TypeScript) The OptionDataItemObject type has not be exported #20755

Open
ZacharyBear opened this issue Feb 13, 2025 · 0 comments
Open
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@ZacharyBear
Copy link

ZacharyBear commented Feb 13, 2025

What problem does this feature solve?

Some typescript supporting for the OptionDataItemObject and its child interfaces.

Now I have to define the OptionDataItem in my own project:

// TODO The same as ECharts' declaration
type OptionDataItemObject<T> = {
    id?: OptionId;
    name?: OptionName;
    groupId?: OptionId;
    childGroupId?: OptionId;
    value?: T[] | T;
    selected?: boolean;
};

const load = (data: OptionDataItemObject<number>) => {
  //...
}

What does the proposed API look like?

I don't need to describe the ECharts' types

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant