static-injector
Version:
Angular 依赖注入独立版本;Angular dependency injection standalone version
32 lines (31 loc) • 1.08 kB
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 { Observable } from 'rxjs';
import { OnDestroy } from './change_detection/lifecycle_hooks';
/**
* Internal implementation of the pending tasks service.
*/
export declare class PendingTasksInternal implements OnDestroy {
private taskId;
private pendingTasks;
private destroyed;
private pendingTask;
private debugTaskTracker;
get hasPendingTasks(): boolean;
/**
* In case the service is about to be destroyed, return a self-completing observable.
* Otherwise, return the observable that emits the current state of pending tasks.
*/
get hasPendingTasksObservable(): Observable<boolean>;
add(): number;
has(taskId: number): boolean;
remove(taskId: number): void;
ngOnDestroy(): void;
/** @nocollapse */
static ɵprov: import("./di/interface/defs").ɵɵInjectableDeclaration<PendingTasksInternal>;
}