Skip to content
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

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

Closed
pearmini opened this issue Sep 11, 2023 Discussed in #5511 · 1 comment · Fixed by #5527
Closed

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

pearmini opened this issue Sep 11, 2023 Discussed in #5511 · 1 comment · Fixed by #5527
Assignees
Labels

Comments

@pearmini
Copy link
Member

Discussed in #5511

Originally posted by xns1997 September 5, 2023

问题

  • 从 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以后 类型声明该怎么写?
@pearmini pearmini added the V5 label Sep 11, 2023
@pearmini pearmini self-assigned this Sep 11, 2023
@pearmini
Copy link
Member Author

主要看看下面的问题:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant