Interface
The Version object.
Subclasses: WidgetVersion
Properties
| Property | Type | Notes |
|---|---|---|
description | string | The description of the version. |
version | string | The version number, which follows the semver version format. |
version
Interface Propertyversion: stringThe version number, which follows the semver version format.
Methods
| Method | Returns | Notes |
|---|---|---|
upgrader(oldConfig, id) | T | Promise<T> | The upgrader function for this version. |
upgrader
Interface Methodupgrader(oldConfig: T, id: string): T | Promise<T>The upgrader function for this version.
Parameters
| Parameter | Type | Notes |
|---|---|---|
old | T | The config of the old version. |
id | string | This ID can be a widgetId, an actionConfig ID, or the "app", depending on where the config is from. |
Returns
T | Promise<T>