-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { type 'xxx' } from './xxx' TS:1005: ',' expected #2584
Comments
升级最新版本 2.22.0 或 2.21 吧 @zhangjuncheng1 |
我试试 |
项目中的typescript 为4.2.2,不支持 export { type xxx } from './xxx' 的语法 。。。 export { LayerPopup, type ILayerPopupOption, type LayerField, type LayerPopupConfigItem, } from './popup/layerPopup'; node_modules/@antv/l7-layers/es/canvas/models/canvas.d.ts:2:15 - error TS1005: ',' expected. |
升级 typescript 5.0 以上 |
项目中很多是基于typescript4的依赖,要是能基于typescript4发一个版本就好了 |
4 支持这样写吗 import type { 'xxx' } from './xxx',可以的话可以来帮忙改下 |
我看从3.8 开始支持的,应该可以 |
可以来贡献一下,提交一个 PR |
问题描述
重现链接
No response
重现步骤
No response
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: