Skip to content

cascader type definition error #3936

@chengdick

Description

@chengdick
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.1

Environment

window 谷歌 vue3

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/next/components/cascader/index.tsx

Steps to reproduce

vue-tsc --noEmit
执行这个命令报错

generateFilteredOptions(prefixCls: string, renderEmpty: typeof import("../config-provider/renderEmpty").default):
{
[x: string]: any;
__IS_FILTERED_OPTION: boolean;
path: CascaderOptionType[];
disabled: boolean;
} | {
[x: string]: void | JSX.Element;
disabled: boolean;
}[];

What is expected?

generateFilteredOptions(prefixCls: string, renderEmpty: typeof import("../config-provider/renderEmpty").default):
{
[x: string]: any;
__IS_FILTERED_OPTION: boolean;
path: CascaderOptionType[];
disabled: boolean;
} | {
[x: string]: void | JSX.Element | boolean;
disabled: boolean;
}[];

What is actually happening?

类型定义报错,


vue-tsc --noEmit 执行不了

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions