Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/interfaces/IIndexedDB.ts
1028 views
1
export interface IIndexedDB {
2
name: string;
3
version: number;
4
objectStores: IObjectStore[];
5
data: { [storeName: string]: IJsonString[] };
6
}
7
8
type IJsonString = string;
9
10
export interface IObjectStore {
11
name: string;
12
keyPath: string | string[];
13
autoIncrement: boolean;
14
indexes: IObjectStoreIndex[];
15
}
16
17
export interface IObjectStoreIndex {
18
name: string;
19
keyPath: string | string[];
20
unique: boolean;
21
multiEntry: boolean;
22
}
23
24