@zjlab-fe/util 0.6.1 → 0.7.0
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 +12 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/types/browser-logger.d.ts +2 -2
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
## API
|
|
2
2
|
|
|
3
|
+
### 获取远端jsonl,解析后返回数组
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
```javascript
|
|
7
|
+
/**
|
|
8
|
+
* 从 URL 获取 JSONL 文件并解析为数组
|
|
9
|
+
* @param url - 要获取的 URL
|
|
10
|
+
* @returns 解析后的数组
|
|
11
|
+
*/
|
|
12
|
+
export declare function fetchJsonlAsArray<T = any>(url: string): Promise<T[]>;
|
|
13
|
+
```
|
|
14
|
+
|
|
3
15
|
### 上传内容到OSS
|
|
4
16
|
|
|
5
17
|
```javascript
|