antvis/G6

[Bug]: drawShape typescript 声明错误 #6982

tclxshunquan-wang posted onGitHub

Describe the bug / 问题描述

Image

drawShape 方法的声明要求返回一个IShape,但是参数cfg和group都有可能为 undefined,这样没办法保证 resultType 的正确

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

Please select / 请选择

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

✅ After careful review, we've determined this is not a bug. Here's why:

  • The current behavior is working as designed
  • This might be a misunderstanding of the feature
  • The issue cannot be reproduced with the provided information

If you still believe this is a bug, please:

  1. Provide a minimal reproduction
  2. Share your expected behavior
  3. Include more detailed environment information

Thank you for helping us improve our project! 💫


✅ 经过仔细核查,这并非一个 bug,原因如下:

  • 当前表现符合设计预期
  • 可能是对功能理解有所偏差
  • 基于已提供信息无法复现问题

如果您仍认为这是一个 bug,建议:

  1. 提供最小复现示例
  2. 说明您期望的表现
  3. 补充更详细的环境信息

期待您的反馈!💫

posted by github-actions[bot] 17 days ago

建议直接复写类型定义

posted by yvonneyx 17 days ago

Fund this Issue

$0.00
Funded

Pull requests