@intuitionrobotics/ts-common
Version:
22 lines (21 loc) • 606 B
TypeScript
export declare class DebugFlag {
private readonly key;
private constructor();
rename(newKey: string): void;
getKey(): string;
enable(enable?: boolean): void;
private _enable;
private _disable;
isEnabled(): boolean;
}
export declare class DebugFlags {
static readonly instance: DebugFlags;
readonly AllDebugFlags: {
[k: string]: DebugFlag;
};
readonly ActiveDebugFlags: string[];
private constructor();
static createFlag(key: string): any;
static add(flag: DebugFlag): void;
static rename(previousKey: string, newKey: string): void;
}