Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon authored Jun 28, 2024
1 parent 420103a commit 629c23e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,23 @@
编辑 `main.js` 实现 `collection` 函数

#### 输入参数

```javascript
// config: config map
// detect: detected source language
// setResult: function to set result text
// utils: some tools
// http: tauri http module
// readBinaryFile: function
// readTextFile: function
// Database: tauri Database class
// CryptoJS: CryptoJS module
// cacheDir: cache dir path
// pluginDir: current plugin dir
// osType: "Windows_NT" | "Darwin" | "Linux"
async function collection(source, target, options = {}) {
const { config, utils } = options;
const { tauriFetch: fetch } = utils;
const { http, readBinaryFile, readTextFile, Database, CryptoJS, run, cacheDir, pluginDir, osType } = utils;
const { fetch, Body } = http;
}
```

Expand Down

0 comments on commit 629c23e

Please sign in to comment.