@bettergi/types 0.0.6 → 0.0.8

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- 本项目是一个为 [Better Genshin Impact](https://github.com/babalae/better-genshin-impact) 提供的 JavaScript 类型声明文件。
1
+ 本项目是一个为 [Better Genshin Impact](https://github.com/babalae/better-genshin-impact) 提供的 TypeScript 类型声明文件。
2
2
 
3
3
  ## 安装
4
4
 
@@ -8,7 +8,7 @@ npm install --save-dev @bettergi/types
8
8
 
9
9
  ## 用法
10
10
 
11
- 在项目的 `tsconfig.json` 文件中添加类型引用。
11
+ TypeScript 项目的 `tsconfig.json` 配置文件中添加类型引用。
12
12
 
13
13
  ```json
14
14
  {
package/modules/file.d.ts CHANGED
@@ -2,6 +2,20 @@ import { Mat } from "mirada/dist/src/types/opencv";
2
2
 
3
3
  declare global {
4
4
  namespace file {
5
+ /**
6
+ * 读取指定文件夹内所有文件和文件夹的路径(非递归方式)
7
+ * @param folderPath 文件路径(相对于脚本根目录)
8
+ * @since 0.44.8
9
+ */
10
+ function readPathSync(folderPath: string): string[];
11
+
12
+ /**
13
+ * 判断指定路径是否为文件夹
14
+ * @param path 文件路径(相对于脚本根目录)
15
+ * @since 0.44.8
16
+ */
17
+ function isFolder(path: string): boolean;
18
+
5
19
  /**
6
20
  * 读取文件文本(支持文件扩展名:`.txt`, `.json`, `.log`, `.csv`, `.xml`, `.html`, `.css`)
7
21
  * @param path 文件路径(相对于脚本根目录)
@@ -43,8 +43,8 @@ declare global {
43
43
 
44
44
  /**
45
45
  * 相对当前鼠标位置移动光标
46
- * @param x - 水平移动偏移量(像素)
47
- * @param y - 垂直移动偏移量(像素)
46
+ * @param x - 水平方向偏移量(像素)
47
+ * @param y - 垂直方向偏移量(像素)
48
48
  * @since 0.35
49
49
  */
50
50
  function moveMouseBy(x: number, y: number): void;
@@ -122,7 +122,7 @@ declare global {
122
122
  /**
123
123
  * 鼠标滚动
124
124
  * @param scrollAmountInClicks - 滚动的点击数 正数向上滚动,负数向下滚动
125
- * @since 0.44.5
125
+ * @since 0.44.7
126
126
  */
127
127
  function verticalScroll(scrollAmountInClicks: number): void;
128
128
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bettergi/types",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "TypeScript Definitions for BetterGI JavaScript",
5
5
  "type": "module",
6
6
  "author": "Bread Grocery<https://github.com/breadgrocery>",