Skip to content

VChat option type are broken #751

@kaine0923

Description

@kaine0923

请确认

  • 我可以确认这个问题无法在 ECharts 项目本身中复现。

您是如何将 Vue-ECharts 引入项目的?

通过 ES 模块 import

版本信息

问题详情

image

export type Option = EChartsOption;

https://github.com/apache/echarts/blob/master/src/export/core.ts#L96-L113

[key in GetMainType<OptionUnion>]?: Arrayable<ExtractComponentOption<OptionUnion, key>>

The purpose of this code is to retrieve the option type for a specific component in EChartsOption. However, due to the type inference, the code produces the following inference result

[x: string]: unknown
[x: number]: unknown

问题复现

https://github.com/kaine0923/vue-echarts-type-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions