mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
28 lines
585 B
TypeScript
28 lines
585 B
TypeScript
|
|
|
|
export interface IMetadata {
|
|
key: string,
|
|
value: string|boolean|number,
|
|
group: string,
|
|
_markAsDeleted?: boolean,
|
|
_markAsInserted?: boolean,
|
|
_markAsUpdated?: boolean,
|
|
};
|
|
|
|
export interface IMetaQuery {
|
|
key: string,
|
|
group?: string,
|
|
};
|
|
|
|
export interface IMetableStore {
|
|
find(query: string|IMetaQuery): IMetadata;
|
|
all(): IMetadata[];
|
|
get(query: string|IMetaQuery, defaultValue: any): string|number|boolean;
|
|
remove(query: string|IMetaQuery): void;
|
|
removeAll(): void;
|
|
toArray(): IMetadata[];
|
|
};
|
|
|
|
export interface IMetableStoreStorage {
|
|
save(): Promise<void>;
|
|
} |