Skip to content

Vizel API / core/src / getVizelCommentStorageBackend

Function: getVizelCommentStorageBackend()

ts
function getVizelCommentStorageBackend(storage, key): object;

Defined in: packages/core/src/comment.ts:120

Parameters

ParameterType
storageVizelCommentStorage
keystring

Returns

object

load

ts
load: () => Promise<VizelComment[]>;

Returns

Promise&lt;VizelComment[]&gt;

save

ts
save: (comments) => Promise<void>;

Parameters

ParameterType
commentsVizelComment[]

Returns

Promise&lt;void&gt;

Released under the MIT License.