@agile-ts/multieditor
Version:
Simple Form Manager for UI-Frameworks
33 lines (32 loc) • 833 B
TypeScript
import { StatusInterface } from './status';
export declare class StatusTracker {
isTracking: boolean;
trackedStatuses: Set<StatusInterface>;
/**
* Helper Class for automatic tracking set Statuses in validation methods.
*
* @internal
*/
constructor();
/**
* Activates the Status Tracker to globally track used Statuses.
*
* @internal
*/
track(): void;
/**
* Tracks the specified Status and caches it
* if the Status Tracker is actively tracking.
*
* @internal
* @param status - Status
*/
tracked(status: StatusInterface): void;
/**
* Returns the latest tracked Statuses
* and stops the Status Tracker from tracking any more Statuses.
*
* @internal
*/
getTrackedStatuses(): Array<StatusInterface>;
}