lik/dist/lik.stringmap.d.ts

52 lines
1.2 KiB
TypeScript
Raw Normal View History

2016-07-21 22:16:45 +00:00
/**
* allows you to easily keep track of a bunch of strings
2016-07-21 22:16:45 +00:00
*/
export interface ITriggerFunction {
(): boolean;
}
2016-07-21 22:16:45 +00:00
export declare class Stringmap {
private _stringArray;
private _triggerUntilTrueFunctionArray;
2016-07-21 22:16:45 +00:00
constructor();
/**
* add a string to the Stringmap
*/
addString(stringArg: string): void;
2016-09-21 13:57:57 +00:00
/**
* like addString, but accepts an array of strings
*/
addStringArray(stringArrayArg: string[]): void;
2016-07-21 22:16:45 +00:00
/**
* removes a string from Stringmap
*/
removeString(stringArg: string): void;
/**
* wipes the Stringmap
*/
wipe(): void;
2016-07-21 22:16:45 +00:00
/**
* check if string is in Stringmap
*/
checkString(stringArg: string): boolean;
2016-07-22 12:59:09 +00:00
/**
* checks stringPresence with minimatch
*/
checkMinimatch(miniMatchStringArg: string): boolean;
/**
* checks if the Stringmap is empty
*/
checkIsEmpty(): boolean;
/**
* gets a cloned copy of the current string Array
*/
getStringArray(): string[];
/**
* register a new trigger
*/
registerUntilTrue(functionArg: ITriggerFunction, doFunctionArg: any): void;
/**
* notifies triggers
*/
private notifyTrigger();
2016-07-21 22:16:45 +00:00
}