ClientStorage.set
Stores a value in client storage.
ClientStorage.set() method
Stores a value in client storage.
Signature:
set(key: string, value: unknown): Promise<void>;Parameters
Parameter | Type | Description |
|---|---|---|
key | string | The storage key |
value | unknown | The value to store. Can be booleans, numbers, strings, dates, objects, arrays, regexps, undefined, or null. |
Returns:
Promise<void>
A promise that resolves when the value is stored
Remarks
Will throw an error if storing this value would exceed the plugin's storage quota
Example
await creator.clientStorage.set("theme", "dark");Last updated: August 5, 2026 at 11:47 AMEdit this page