@bettergi/types 0.0.7 → 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/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 文件路径(相对于脚本根目录)
@@ -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.7",
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>",