15 lines
459 B
TypeScript
15 lines
459 B
TypeScript
import { Jsonify } from "type-fest";
|
|
|
|
import { HtmlStorageLocation } from "../../enums/htmlStorageLocation";
|
|
import { StorageLocation } from "../../enums/storageLocation";
|
|
|
|
export type StorageOptions = {
|
|
storageLocation?: StorageLocation;
|
|
useSecureStorage?: boolean;
|
|
userId?: string;
|
|
htmlStorageLocation?: HtmlStorageLocation;
|
|
keySuffix?: string;
|
|
};
|
|
|
|
export type MemoryStorageOptions<T> = StorageOptions & { deserializer?: (obj: Jsonify<T>) => T };
|