utils/node_modules/computeds/out/tracker.d.ts

18 lines
503 B
TypeScript
Raw Normal View History

2024-02-07 01:33:07 -05:00
import { DirtyLevels } from './system';
export type TrackToken = WeakRef<Tracker> | Tracker;
export declare class Tracker {
spread: () => void;
effect?: (() => void) | undefined;
trackToken?: TrackToken;
dirtyLevel: DirtyLevels;
trackId: number;
runnings: number;
queryings: number;
depsLength: number;
constructor(spread: () => void, effect?: (() => void) | undefined);
get dirty(): boolean;
track<T>(fn: () => T): T;
reset(): void;
deref(): this;
}