UNPKG

1.28 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.dev/license
7 */
8import { BaseException } from '../exception';
9export declare class DependencyNotFoundException extends BaseException {
10 constructor();
11}
12export declare class CircularDependencyFoundException extends BaseException {
13 constructor();
14}
15export declare class PartiallyOrderedSet<T> implements Set<T> {
16 private _items;
17 protected _checkCircularDependencies(item: T, deps: Set<T>): void;
18 clear(): void;
19 has(item: T): boolean;
20 get size(): number;
21 forEach(callbackfn: (value: T, value2: T, set: PartiallyOrderedSet<T>) => void, thisArg?: any): void;
22 /**
23 * Returns an iterable of [v,v] pairs for every value `v` in the set.
24 */
25 entries(): SetIterator<[T, T]>;
26 /**
27 * Despite its name, returns an iterable of the values in the set,
28 */
29 keys(): SetIterator<T>;
30 /**
31 * Returns an iterable of values in the set.
32 */
33 values(): SetIterator<T>;
34 add(item: T, deps?: Set<T> | T[]): this;
35 delete(item: T): boolean;
36 [Symbol.iterator](): Generator<T, undefined, unknown>;
37 get [Symbol.toStringTag](): 'Set';
38}