kvStore now working as intended
This commit is contained in:
24
dist/npmextra.classes.keyvaluestore.d.ts
vendored
24
dist/npmextra.classes.keyvaluestore.d.ts
vendored
@@ -1,28 +1,42 @@
|
||||
import { Task, TaskOnce } from 'taskbuffer';
|
||||
export declare type TKeyValueStore = 'path' | 'gitProject' | 'custom';
|
||||
/**
|
||||
* kvStore is a simple key vlaue store to store data about projects between runs
|
||||
*/
|
||||
export declare class KeyValueStore {
|
||||
dataObject: any;
|
||||
deletedObject: any;
|
||||
initialReadTask: TaskOnce;
|
||||
syncTask: Task;
|
||||
type: TKeyValueStore;
|
||||
identity: string;
|
||||
filePath: string;
|
||||
constructor(typeArg: TKeyValueStore, customStringArg?: string);
|
||||
/**
|
||||
* the constructor of keyvalue store
|
||||
* @param typeArg
|
||||
* @param customStringArg
|
||||
*/
|
||||
constructor(typeArg: TKeyValueStore, customStringArg: string);
|
||||
/**
|
||||
* reads all keyValue pairs at once and returns them
|
||||
*/
|
||||
readAll(): Promise<any>;
|
||||
/**
|
||||
* reads a keyValueFile from disk
|
||||
*/
|
||||
read(): void;
|
||||
read(keyArg: string): Promise<any>;
|
||||
/**
|
||||
* writes a key value file to disk
|
||||
*/
|
||||
write(): void;
|
||||
write(keyValueObject: any): Promise<void>;
|
||||
/**
|
||||
* wipes a key value store from disk
|
||||
*/
|
||||
wipe(): void;
|
||||
wipe(): Promise<void>;
|
||||
/**
|
||||
* updates a value
|
||||
*/
|
||||
update(): void;
|
||||
update(keyObject: any): Promise<void>;
|
||||
/**
|
||||
* computes the identity
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user