Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Jan 3, 2025
1 parent b961b7c commit a14901b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/content/docs/docs/plugin/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default config;
* [`reload()`](#reload)
* [`setMultiDelay(...)`](#setmultidelay)
* [`cancelDelay()`](#canceldelay)
* [`getLatest()`](#getlatest)
* [`getLatest(...)`](#getlatest)
* [`setChannel(...)`](#setchannel)
* [`unsetChannel(...)`](#unsetchannel)
* [`getChannel()`](#getchannel)
Expand Down Expand Up @@ -389,14 +389,18 @@ Cancels a {@link <a href="#delaycondition">DelayCondition</a>} to process an upd
--------------------


## getLatest()
## getLatest(...)

```typescript
getLatest() => Promise<LatestVersion>
getLatest(options?: GetLatestOptions | undefined) => Promise<LatestVersion>
```

Get Latest bundle available from update Url

| Param | Type |
| ------------- | ------------------------------------------------------------- |
| **`options`** | <code><a href="#getlatestoptions">GetLatestOptions</a></code> |

**Returns:** <code>Promise&lt;<a href="#latestversion">LatestVersion</a>&gt;</code>

**Since:** 4.0.0
Expand Down Expand Up @@ -871,6 +875,13 @@ Returns null if no next bundle is set.
| **`download_url`** | <code>string \| null</code> |


### GetLatestOptions

| Prop | Type | Description | Default | Since |
| ------------- | ------------------- | ----------------------------------------------------------------------------------------------- | ---------------------- | ----- |
| **`channel`** | <code>string</code> | The channel to get the latest version for The channel must allow 'self_assign' for this to work | <code>undefined</code> | 6.8.0 |


### ChannelRes

| Prop | Type | Description | Since |
Expand Down

0 comments on commit a14901b

Please sign in to comment.