-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpartially-ordered-set.d.ts
38 lines (38 loc) · 1.26 KB
/
partially-ordered-set.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @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 { BaseException } from '../exception';
export declare class DependencyNotFoundException extends BaseException {
constructor();
}
export declare class CircularDependencyFoundException extends BaseException {
constructor();
}
export declare class PartiallyOrderedSet<T> implements Set<T> {
private _items;
protected _checkCircularDependencies(item: T, deps: Set<T>): void;
clear(): void;
has(item: T): boolean;
get size(): number;
forEach(callbackfn: (value: T, value2: T, set: PartiallyOrderedSet<T>) => void, thisArg?: any): void;
/**
* Returns an iterable of [v,v] pairs for every value `v` in the set.
*/
entries(): SetIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set,
*/
keys(): SetIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): SetIterator<T>;
add(item: T, deps?: Set<T> | T[]): this;
delete(item: T): boolean;
[Symbol.iterator](): IterableIterator<T, undefined, unknown>;
get [Symbol.toStringTag](): 'Set';
}