easyeda / easyeda/pro-api-sdk

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

Open
#27 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
64
Forks
26
PR merge metrics
No merged PRs in 30d

Description

## 环境
- 嘉立创EDA 专业版:
- @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>

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

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

## 最小复现
```typescript
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, ... }>。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.