jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
24 lines (23 loc) • 886 B
TypeScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* [[include:core/storage/README.md]]
* @packageDocumentation
* @module storage
*/
import type { IStorage, StorageValueType } from "../../types/index";
export declare const StorageKey: string;
export declare class Storage<T = StorageValueType> implements IStorage<T> {
readonly provider: IStorage<T>;
readonly prefix: string;
set(key: string, value: T): IStorage<T>;
delete(key: string): IStorage<T>;
get<R = T>(key: string): R | void;
exists(key: string): boolean;
clear(): IStorage<T>;
protected constructor(provider: IStorage<T>, suffix?: string);
static makeStorage(persistent?: boolean, suffix?: string): IStorage;
}