static-injector
Version:
Angular 依赖注入独立版本;Angular dependency injection standalone version
22 lines (21 loc) • 847 B
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { CreateEffectOptions, EffectCleanupRegisterFn, EffectRef } from './effect';
import { type SchedulableEffect, ZoneAwareEffectScheduler } from './root_effect_scheduler';
export declare class MicrotaskEffectScheduler extends ZoneAwareEffectScheduler {
private readonly pendingTasks;
private taskId;
schedule(effect: SchedulableEffect): void;
flush(): void;
/** @nocollapse */
static ɵprov: unknown;
}
/**
* Create a global `Effect` for the given reactive function.
*/
export declare function microtaskEffect(effectFn: (onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions): EffectRef;