Giter Club home page Giter Club logo

Comments (8)

zhangjuncheng1 avatar zhangjuncheng1 commented on September 27, 2024 1

项目中很多是基于typescript4的依赖,要是能基于typescript4发一个版本就好了

from l7.

lvisei avatar lvisei commented on September 27, 2024

升级最新版本 2.22.0 或 2.21 吧 @zhangjuncheng1

from l7.

zhangjuncheng1 avatar zhangjuncheng1 commented on September 27, 2024

我试试

from l7.

zhangjuncheng1 avatar zhangjuncheng1 commented on September 27, 2024

项目中的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.

from l7.

lvisei avatar lvisei commented on September 27, 2024

升级 typescript 5.0 以上

from l7.

lvisei avatar lvisei commented on September 27, 2024

项目中很多是基于typescript4的依赖,要是能基于typescript4发一个版本就好了

4 支持这样写吗 import type { 'xxx' } from './xxx',可以的话可以来帮忙改下

from l7.

zhangjuncheng1 avatar zhangjuncheng1 commented on September 27, 2024

我看从3.8 开始支持的,应该可以

from l7.

lvisei avatar lvisei commented on September 27, 2024

我看从3.8 开始支持的,应该可以

可以来贡献一下,提交一个 PR

from l7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.