vxe-table-plugin-element
vxe-table-plugin-element copied to clipboard
通不过 vue-tsc 检查
可复现的链接:
import { VXETablePluginElement } from "vxe-table-plugin-element";
问题描述与截图:
只需要在源代码中引入,再跑 vue-tsc
或者 vue-tscc --noEmit
就会报错
查看了库文件,
package.json 中 typings 声明为 index.ts 似乎应该是 index.d.ts(相应地改文件名)
期望的结果:
No response
操作系统:
Windows 10
浏览器版本:
Microsoft Edge 103.0.1264.62
vue 版本:
3
vxe-table 版本:
x
BTW,这个 BUG 提交搞得太复杂了哇
我也一样
node_modules/vxe-table-plugin-element/index.ts:272:26 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'.
272 h(resolveComponent(name), { ~~~~
node_modules/vxe-table-plugin-element/index.ts:309:35 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'.
309 return h(resolveComponent(name), { ~~~~
node_modules/vxe-table-plugin-element/index.ts:375:26 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'.
375 h(resolveComponent(name), { ~~~~
node_modules/vxe-table-plugin-element/index.ts:428:39 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'.
428 return h(resolveComponent(name) as ComponentOptions, { ~~~~
node_modules/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'.
694 return h(resolveComponent(name), { ~~~~
node_modules/vxe-table-plugin-element/index.ts:759:41 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'.
759 return h(resolveComponent(name), { ~~~~
Found 6 errors in the same file, starting at: node_modules/vxe-table-plugin-element/index.ts:272