Skip to content

eda.sch_Drc.check(..., includeVerboseError=true) 运行时返回 boolean,与类型声明的 Promise<Array<any>> 不一致 #27

@butterfly2sea

Description

@butterfly2sea

环境

  • 嘉立创EDA 专业版:<V3.2.117>
  • @jlceda/pro-api-types:<0.2.30>
  • 平台:macOS 26 / ARM64

类型声明

@jlceda/pro-api-types 中 sch_Drc.check 有两个重载:

  • check(strict, ui, false) : Promise
  • check(strict, ui, true) : Promise<Array>

实际行为

调用 eda.sch_Drc.check(false, false, true) 运行时始终返回 boolean,
verbose 重载未生效。

同签名的 eda.pcb_Drc.check(false, false, true) 则按声明返回详细违规数组,
说明问题只在 schematic 侧。

最小复现

const r = await eda.sch_Drc.check(false, false, true);                                                                                       
console.log(typeof r, r);  // 期望:'object' + Array;实际:'boolean'
                                                                                                                                             
期望
                                                                                                                                             
sch_Drc.check  verbose 重载与 pcb_Drc.check 行为对齐,                                                                                      
返回 Array<{ rule, severity, location, message, ... }>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions