jodit
Version:
Jodit is awesome and usefully wysiwyg editor with filebrowser
16 lines (13 loc) • 500 B
text/typescript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2020 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
export type StorageValueType = string | number | boolean | StorageValueType[];
export interface IStorage<T = StorageValueType> {
set(key: string, value: T): void;
delete(key: string): void;
get<R = T>(key: string): R | void;
exists(key: string): boolean;
clear(): void;
}