@jlceda/pro-api-types 0.1.59 → 0.1.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +6 -2
  2. package/index.d.ts +8 -5
  3. package/package.json +3 -4
package/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义
4
4
 
5
- [![Build Status](https://easyeda-docs.coding.net/badges/eda-sdk/job/4639863/build.svg)](https://easyeda-docs.coding.net/p/eda-sdk/ci/job) ![NPM Version](https://img.shields.io/npm/v/%40jlceda%2Fpro-api-types) ![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/%40jlceda%2Fpro-api-types) ![NPM License](https://img.shields.io/npm/l/%40jlceda%2Fpro-api-types) ![NPM Downloads](https://img.shields.io/npm/d18m/%40jlceda%2Fpro-api-types)
5
+ [![Build Status](https://easyeda-docs.coding.net/badges/eda-sdk/job/4639863/build.svg)](https://easyeda-docs.coding.net/p/eda-sdk/ci/job)
6
+ ![NPM Version](https://img.shields.io/npm/v/%40jlceda%2Fpro-api-types)
7
+ ![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/%40jlceda%2Fpro-api-types)
8
+ ![NPM License](https://img.shields.io/npm/l/%40jlceda%2Fpro-api-types)
9
+ ![NPM Downloads](https://img.shields.io/npm/d18m/%40jlceda%2Fpro-api-types)
6
10
 
7
11
  ## 使用
8
12
 
@@ -11,7 +15,7 @@
11
15
  1. 安装类型定义
12
16
 
13
17
  ```shell
14
- npm add -D @jlceda/pro-api-types
18
+ npm install --save-dev @jlceda/pro-api-types
15
19
  ```
16
20
 
17
21
  2. 将 `./node_modules/@jlceda/pro-api-types/` 添加到 `tsconfig.include` 内
package/index.d.ts CHANGED
@@ -686,7 +686,7 @@ declare class DMT_Team {
686
686
  */
687
687
  declare class DMT_Workspace {
688
688
  /**
689
- * 获取所有工作区的详细属性
689
+ * 获取所有工作区的详���属性
690
690
  *
691
691
  * @public
692
692
  * @returns 所有工作区的详细属性
@@ -3121,7 +3121,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
3121
3121
  */
3122
3122
  toSync(): IPCB_PrimitivePad;
3123
3123
  /**
3124
- * 查询图元是否为异步图元
3124
+ * 查询图元���否为异步图元
3125
3125
  *
3126
3126
  * @public
3127
3127
  * @returns 是否为异步图元
@@ -6190,7 +6190,7 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
6190
6190
  */
6191
6191
  create(net: string, layer: TPCB_LayersOfLine, startX: number, startY: number, endX: number, endY: number, lineWidth?: number, primitiveLock?: boolean): Promise<IPCB_PrimitiveLine | undefined>;
6192
6192
  /**
6193
- * 删除��线
6193
+ * 删除导线
6194
6194
  *
6195
6195
  * @beta
6196
6196
  * @param primitiveIds - 导线的图元 ID 或导线图元对象
@@ -6640,7 +6640,7 @@ declare class SCH_Drc {
6640
6640
  * 检查 DRC
6641
6641
  *
6642
6642
  * @public
6643
- * @param strict - 是否严格检查,严格检查时存在 Warning 将返回 `false`,否���返回 `true`
6643
+ * @param strict - 是否严格检查,严格检查时存在 Warning 将返回 `false`,否则返回 `true`
6644
6644
  * @param userInterface - 是否显示 UI(呼出底部 DRC 窗口)
6645
6645
  * @returns DRC 检查是否无错误
6646
6646
  */
@@ -7670,7 +7670,7 @@ declare class SYS_FileManager {
7670
7670
  * 获取文档源码
7671
7671
  *
7672
7672
  * @beta
7673
- * @returns 文档源码数据,`undefined` 表示当前未打开文档或数据获取失败
7673
+ * @returns 文档源码数据,`undefined` 表示当前未打开文��或数据获取失败
7674
7674
  */
7675
7675
  getDocumentSource(): Promise<string | undefined>;
7676
7676
  /**
@@ -8172,6 +8172,7 @@ declare class SYS_Timer {
8172
8172
  * @param timeout - 定时时间,单位 ms
8173
8173
  * @param callFn - 定时调用函数
8174
8174
  * @param argument - 传给定时调用函数的参数
8175
+ * @returns 定时器是否设置成功
8175
8176
  */
8176
8177
  setIntervalTimer(id: string, timeout: number, callFn: (argument: any) => void, argument?: any): boolean;
8177
8178
  /**
@@ -8179,6 +8180,7 @@ declare class SYS_Timer {
8179
8180
  *
8180
8181
  * @public
8181
8182
  * @param id - 定时器 ID
8183
+ * @returns 定时器是否清除成功
8182
8184
  */
8183
8185
  clearIntervalTimer(id: string): boolean;
8184
8186
  /**
@@ -8188,6 +8190,7 @@ declare class SYS_Timer {
8188
8190
  * @param timeout - 定时时间,单位 ms
8189
8191
  * @param callFn - 定时调用函数
8190
8192
  * @param argument - 传给定时调用函数的参数
8193
+ * @returns 定时器是否设置成功
8191
8194
  */
8192
8195
  setTimeoutTimer(timeout: number, callFn: (argument: any) => void, argument?: any): boolean;
8193
8196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.59",
3
+ "version": "0.1.61",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "author": "JLCEDA <support@lceda.cn>",
11
11
  "license": "Apache-2.0",
12
- "homepage": "https://lceda.cn/",
12
+ "homepage": "https://pro.lceda.cn/",
13
13
  "scripts": {
14
14
  "prepare": "husky",
15
15
  "prettier:all": "prettier --write .",
@@ -30,10 +30,9 @@
30
30
  "eslint-plugin-tsdoc": "^0.3.0",
31
31
  "fast-text-encoding": "^1.0.6",
32
32
  "fs-extra": "^11.2.0",
33
- "husky": "^9.1.1",
33
+ "husky": "^9.1.3",
34
34
  "lint-staged": "^15.2.7",
35
35
  "prettier": "^3.3.3",
36
- "rimraf": "^6.0.1",
37
36
  "ts-node": "^10.9.2",
38
37
  "typescript": "^5.5.4"
39
38
  },