Plugin.saveData method
Plugin › saveData
Official
Write settings data to disk. Data is stored indata.json in the plugin folder. Signature:
saveData(data: unknown): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| data | unknown | The settings data to save. |
Returns: Promise<void> — The promise that resolves when the data is saved.
Since: 0.9.7
Example:
await plugin.saveData({ foo: 'bar' });