Vizel API / core/src / getVizelCommentStorageBackend
Function: getVizelCommentStorageBackend()
ts
function getVizelCommentStorageBackend(storage, key): object;Defined in: packages/core/src/comment.ts:120
Parameters
| Parameter | Type |
|---|---|
storage | VizelCommentStorage |
key | string |
Returns
object
load
ts
load: () => Promise<VizelComment[]>;Returns
Promise<VizelComment[]>
save
ts
save: (comments) => Promise<void>;Parameters
| Parameter | Type |
|---|---|
comments | VizelComment[] |
Returns
Promise<void>