WebStorageLike
The subset of the Web Storage API used by localStorageAdapter.
The subset of the Web Storage API used by localStorageAdapter.
import type { WebStorageLike } from "@sponsorkit/sdk";
interface WebStorageLike { … }Interface, exported from @sponsorkit/sdk, @sponsorkit/sdk/node.
Methods#
getItem()#
getItem(key: string): string | nullParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
key | string | required |
Returns string | null
setItem()#
setItem(key: string, value: string): voidParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
key | string | required | |
value | string | required |
Returns void