Skip to content

vue-tsc不通过 resolveComponent不接受可空name #28

@kcmeven

Description

@kcmeven

可复现的链接:

https://github.com/x-extends/vxe-table-plugin-element/blob/master/index.ts

问题描述与截图:

vxe-table-plugin-element/index.ts:694:41 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

期望的结果:

vue-tsc通过

操作系统:

10

浏览器版本:

版本 104.0.1293.70 (正式版本) (64 位)

vue 版本:

3.2.37

vxe-table 版本:

4.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions