antvis/G2

5.1.0 版本更新后的 CompositionNode 的类型 #5525

pearmini posted onGitHub

Discussed in https://github.com/antvis/G2/discussions/5511

<div type='discussions-op-text'>

<sup>Originally posted by xns1997 September 5, 2023</sup>

问题

  • 从 5.0.18 升级到 5.1.0
  • 我原先的类型声明方法:
    import type { FacetRect } from '@antv/g2/lib/api/composition'
    import type { Boxplot } from '@antv/g2/lib/api/mark/mark'
    

let box: Boxplot | null = null let facet: FacetRect | null = null // ... box = chart.boxplot()

```

  • 请问升级到 5.1.0以后 类型声明该怎么写?

    </div>


主要看看下面的问题:

image

posted by pearmini over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests