lik/dist/lik.objectmap.d.ts

41 lines
843 B
TypeScript

export interface IObjectmapForEachFunction {
(itemArg: any): void;
}
export interface IObjectmapFindFunction {
(itemArg: any): boolean;
}
/**
* allows keeping track of objects
*/
export declare class Objectmap {
private objectArray;
/**
* returns a new instance
*/
constructor();
/**
* add object to Objectmap
*/
add(objectArg: any): void;
/**
* remove object from Objectmap
*/
remove(objectArg: any): void;
/**
* check if object is in Objectmap
*/
checkForObject(objectArg: any): number;
/**
* find object
*/
find(findFunction: IObjectmapFindFunction): any;
/**
* run function for each item in Objectmap
*/
forEach(functionArg: IObjectmapForEachFunction): void;
/**
* wipe Objectmap
*/
wipe(): void;
}