UNPKG

marko

Version:

Optimized runtime for Marko templates.

10 lines (9 loc) • 655 B
import { type Scope } from "../common/types"; export declare function $signalReset(scope: Scope, id: string | number): void; export declare function $signal(scope: Scope, id: string | number): AbortSignal; /** Runs `abort` as a destroyed scope's `$signal` would fire, without creating one. */ export declare function trackAbort(scope: Scope, id: string | number, abort: () => void): void; /** Enrols `scope` with its branch so destroying the branch cleans it up. */ export declare function trackCleanup(scope: Scope, subscribers?: Set<Scope>): void; export declare let abortsEnabled: undefined | 1; export declare let subscriptionsEnabled: undefined | 1;