npmextra/dist/npmextra.classes.keyvaluestore.d.ts

31 lines
690 B
TypeScript
Raw Normal View History

2017-03-18 15:23:47 +00:00
export declare type TKeyValueStore = 'path' | 'gitProject' | 'custom';
2017-07-09 17:05:03 +00:00
/**
* kvStore is a simple key vlaue store to store data about projects between runs
*/
2016-09-24 19:53:44 +00:00
export declare class KeyValueStore {
2017-03-18 15:23:47 +00:00
type: TKeyValueStore;
2016-09-24 19:53:44 +00:00
identity: string;
filePath: string;
2017-03-18 15:23:47 +00:00
constructor(typeArg: TKeyValueStore, customStringArg?: string);
2016-09-24 19:53:44 +00:00
/**
* reads a keyValueFile from disk
*/
read(): void;
/**
* writes a key value file to disk
*/
write(): void;
/**
* wipes a key value store from disk
*/
wipe(): void;
/**
* updates a value
*/
update(): void;
/**
* computes the identity
*/
private initFilePath();
}