apache / apache/echarts

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

Open
#20,755 0 comments 1 reaction 0 assignees View on GitHub
en new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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 = {
id?: OptionId;
name?: OptionName;
groupId?: OptionId;
childGroupId?: OptionId;
value?: T[] | T;
selected?: boolean;
};

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

### What does the proposed API look like?

I don't need to describe the ECharts' types

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.