ms-types 0.0.28 → 0.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/file.d.ts CHANGED
@@ -52,6 +52,14 @@ declare namespace file {
52
52
  * @example file.readFile("config.json")
53
53
  */
54
54
  function readFile(path: string): string;
55
+ /**
56
+ * 读取资源文件
57
+ * @param fileName 文件名
58
+ * @returns 文件内容
59
+ * @example
60
+ * file.readResFile("test.txt")
61
+ */
62
+ function readResFile(fileName: string): string | null;
55
63
  /**
56
64
  * 删除文件内容
57
65
  * @param path 文件路径
package/types/utils.d.ts CHANGED
@@ -10,14 +10,6 @@ declare namespace utils {
10
10
  * utils.timeFormat("yyyy-MM-dd hh:mm:ss")
11
11
  */
12
12
  function timeFormat(format: string): string;
13
- /**
14
- * 读取资源文件
15
- * @param fileName 文件名
16
- * @returns 文件内容
17
- * @example
18
- * utils.readResFile("test.txt")
19
- */
20
- function readResFile(fileName: string): string | null;
21
13
  /**
22
14
  * 生成随机数
23
15
  * @param min 最小值