Skip to content

Commit 58af960

Browse files
2.1.3 - 适配 AutoJs6 6.5.0; 新增 opencc 模块声明; 部分依赖或本地库声明文件版本调整
1 parent daaf180 commit 58af960

20 files changed

Lines changed: 3900 additions & 5671 deletions

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<p>
1212
<a href="http://dts-project.autojs6.com/blob/main/package.json"><img alt="Version name" src="https://img.shields.io/badge/dynamic/json?color=534BAE&label=version&query=%24.version&url=https%3A%2F%2Fraw.githubusercontent.com%2FSuperMonster003%2FAutoJs6-TypeScript-Declarations%2Fmaster%2Fpackage.json"/></a>
1313
<a href="http://dts-issues.autojs6.com"><img alt="GitHub issues" src="https://img.shields.io/github/issues/SuperMonster003/AutoJs6-TypeScript-Declarations?color=009688"/></a>
14-
<a href="http://project.autojs6.com"><img alt="GitHub AutoJs6 repository" src="https://img.shields.io/badge/autojs6-6.3.3-388E3C"/></a>
14+
<a href="http://project.autojs6.com"><img alt="GitHub AutoJs6 repository" src="https://img.shields.io/badge/autojs6->=6.3.3-388E3C"/></a>
1515
<a href="https://github.com/topics/javascript"><img alt="GitHub top language" src="https://img.shields.io/github/languages/top/SuperMonster003/AutoJs6-TypeScript-Declarations?color=3178C6"/></a>
1616
<br>
1717
<a href="https://github.com/SuperMonster003/AutoJs6-TypeScript-Declarations/commit/f8250babdb161e12ad2e14c73e8aa2b5d7d89cbc"><img alt="Created" src="https://img.shields.io/date/1635813883?color=C56000&label=created"/></a>
@@ -29,7 +29,7 @@
2929

3030
实现或增强开发工具的代码智能补全功能:
3131

32-
* AutoJs6 版本: [6.3.3](http://download.autojs6.com)
32+
* AutoJs6 版本: [不低于 6.3.3](http://download.autojs6.com)
3333
* 支持的开发工具: [VSCode](https://code.visualstudio.com/download) / [WebStorm](https://www.jetbrains.com/webstorm/download/) / [HBuilderX](https://www.dcloud.io/hbuilderx.html) ...
3434

3535
******
@@ -146,6 +146,18 @@ npm update @sm003/autojs6-dts
146146

147147
[comment]: <> (Version history only shows last 3 versions)
148148

149+
# v2.1.3
150+
151+
###### 2023/12/02
152+
153+
* `新增` opencc 模块声明文件
154+
* `优化` 完善 ocr 章节缺失的 detect 及 recognizeText 声明
155+
* `优化` 适配 AutoJs6 6.5.0
156+
* `依赖` 附加 Android OpenCC 声明文件版本 1.2.0
157+
* `依赖` 升级 Android dx 声明版本 1.11 -> 1.14
158+
* `依赖` 降级 Jackson DataBind 声明版本 2.14.3 -> 2.13.3
159+
* `依赖` 降级 Apache Commons IO 声明文件版本 2.14.0 -> 2.8.0
160+
149161
# v2.1.2
150162

151163
###### 2023/10/30
@@ -161,17 +173,6 @@ npm update @sm003/autojs6-dts
161173

162174
* `优化` 适配 AutoJs6 6.3.3
163175

164-
# v2.1.0
165-
166-
###### 2023/07/06
167-
168-
* `新增` crypto 模块声明文件
169-
* `优化` README.md 增加 VSCode 配置说明
170-
* `优化` jsconfig.json 指定声明文件根目录以增加适配性
171-
* `优化` base64.encode/decode 支持字节数组
172-
* `优化` 内置模块支持 "$" 前缀
173-
* `优化` 适配 AutoJs6 6.3.2
174-
175176
##### 更多版本历史可参阅
176177

177178
* [CHANGELOG.md](https://github.com/SuperMonster003/AutoJs6-TypeScript-Declarations/blob/main/docs/CHANGELOG.md)

declarations/autojs6/aj6-int-app.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ declare namespace Intent {
560560

561561
type Activity = 'settings' | 'preferences' | 'pref' | 'console' | 'log' | 'homepage' | 'home' | 'about' | 'build' | 'documentation' | 'doc' | 'docs';
562562

563-
type Broadcast = 'inspect_layout_bounds' | 'bounds' | 'inspect_layout_hierarchy' | 'hierarchy';
563+
type Broadcast = 'inspect_layout_bounds' | 'layout_bounds' | 'bounds' | 'inspect_layout_hierarchy' | 'layout_hierarchy' | 'hierarchy';
564564

565565
}
566566

declarations/autojs6/aj6-int-automator.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ declare namespace Internal {
319319
* An exception will be thrown and a11y configuration page will be prompted without the service running normally.
320320
* zh-CN: 设置无障碍模式并确保无障碍服务启动; 如果无障碍服务未启用, 则抛出异常并跳转到无障碍服务启用界面
321321
* @param [mode="normal"]
322+
* @param [isForcibleRestart=false]
322323
* @example
323324
* // normal mode (default)
324325
* // zh-CN: 正常模式 (默认)
@@ -345,9 +346,10 @@ declare namespace Internal {
345346
* }
346347
* runtime.accessibilityBridge.ensureServiceEnabled();
347348
* @see auto.waitFor
348-
* @see org.autojs.autojs.core.accessibility.AccessibilityBridge.ensureServiceEnabled
349+
* @see ensureServiceStarted
349350
*/
350-
(mode?: Automator.Mode): void;
351+
(mode?: Automator.Mode, isForcibleRestart?: boolean): void;
352+
(isForcibleRestart: boolean): void;
351353

352354
/**
353355
* @example Source code summary (zh-CN: 源代码摘要)

declarations/autojs6/aj6-int-bridges.d.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

declarations/autojs6/aj6-int-console.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ declare namespace Internal {
181181
* Configuration of saving Auto.js logs to local storage (path, file name, etc...)
182182
* @param {{
183183
* file?: string,
184-
* filePattern?: "%m%n"|"%d - [%p::%c::%C] - %m%n"|string,
184+
* filePattern?: '%m%n'|'%d - [%p::%c::%C] - %m%n'|string,
185185
* immediateFlush?: boolean,
186186
* maxBackupSize?: number,
187187
* maxFileSize?: number,
188188
* resetConfiguration?: boolean,
189-
* rootLevel?: "OFF"|"FATAL"|"ERROR"|"WARN"|"INFO"|"DEBUG"|"TRACE"|"ALL",
189+
* rootLevel?: 'OFF'|'FATAL'|'ERROR'|'WARN'|'INFO'|'DEBUG'|'TRACE'|'ALL',
190190
* }} [config={
191191
* filePattern: "%m%n",
192192
* immediateFlush: true,
@@ -330,6 +330,8 @@ declare namespace Internal {
330330
setExitOnClose(timeout: number): this;
331331
setExitOnClose(exitOnClose?: boolean): this;
332332

333+
setTouchable(touchable?: boolean): this;
334+
333335
printAllStackTrace(t: OmniThrowable): void;
334336

335337
}
@@ -380,6 +382,7 @@ declare namespace Internal {
380382
backgroundColor?: OmniColor;
381383
backgroundAlpha?: number;
382384
exitOnClose?: number | boolean;
385+
touchable?: boolean;
383386
}
384387

385388
}

declarations/autojs6/aj6-int-dialogs.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ declare namespace Dialogs {
761761
autoDismiss?: boolean;
762762
inputHint?: string;
763763
inputPrefill?: string;
764+
inputSingleLine?: boolean;
764765
customView?: View;
765766
wrapInScrollView?: boolean;
766767
stubborn?: boolean;

0 commit comments

Comments
 (0)