strict-ts-lib-v6.0 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/libs/decorators/index.d.ts +360 -0
- package/libs/decorators/legacy/index.d.ts +17 -0
- package/libs/dom/asynciterable/index.d.ts +2 -0
- package/libs/dom/index.d.ts +53065 -0
- package/libs/dom/iterable/index.d.ts +2 -0
- package/libs/es2015/collection/index.d.ts +151 -0
- package/libs/es2015/core/index.d.ts +645 -0
- package/libs/es2015/generator/index.d.ts +63 -0
- package/libs/es2015/index.d.ts +10 -0
- package/libs/es2015/iterable/index.d.ts +658 -0
- package/libs/es2015/promise/index.d.ts +72 -0
- package/libs/es2015/proxy/index.d.ts +129 -0
- package/libs/es2015/reflect/index.d.ts +143 -0
- package/libs/es2015/symbol/index.d.ts +28 -0
- package/libs/es2015/symbol-wellknown/index.d.ts +329 -0
- package/libs/es2016/array-include/index.d.ts +113 -0
- package/libs/es2016/full/index.d.ts +5 -0
- package/libs/es2016/index.d.ts +3 -0
- package/libs/es2016/intl/index.d.ts +13 -0
- package/libs/es2017/arraybuffer/index.d.ts +3 -0
- package/libs/es2017/date/index.d.ts +21 -0
- package/libs/es2017/full/index.d.ts +5 -0
- package/libs/es2017/index.d.ts +8 -0
- package/libs/es2017/intl/index.d.ts +26 -0
- package/libs/es2017/object/index.d.ts +113 -0
- package/libs/es2017/sharedmemory/index.d.ts +246 -0
- package/libs/es2017/string/index.d.ts +27 -0
- package/libs/es2017/typedarrays/index.d.ts +35 -0
- package/libs/es2018/asyncgenerator/index.d.ts +67 -0
- package/libs/es2018/asynciterable/index.d.ts +47 -0
- package/libs/es2018/full/index.d.ts +6 -0
- package/libs/es2018/index.d.ts +6 -0
- package/libs/es2018/intl/index.d.ts +90 -0
- package/libs/es2018/promise/index.d.ts +12 -0
- package/libs/es2018/regexp/index.d.ts +19 -0
- package/libs/es2019/array/index.d.ts +92 -0
- package/libs/es2019/full/index.d.ts +6 -0
- package/libs/es2019/index.d.ts +6 -0
- package/libs/es2019/intl/index.d.ts +5 -0
- package/libs/es2019/object/index.d.ts +142 -0
- package/libs/es2019/string/index.d.ts +19 -0
- package/libs/es2019/symbol/index.d.ts +6 -0
- package/libs/es2020/bigint/index.d.ts +952 -0
- package/libs/es2020/date/index.d.ts +33 -0
- package/libs/es2020/full/index.d.ts +6 -0
- package/libs/es2020/index.d.ts +9 -0
- package/libs/es2020/intl/index.d.ts +492 -0
- package/libs/es2020/number/index.d.ts +13 -0
- package/libs/es2020/promise/index.d.ts +35 -0
- package/libs/es2020/sharedmemory/index.d.ts +144 -0
- package/libs/es2020/string/index.d.ts +30 -0
- package/libs/es2020/symbol-wellknown/index.d.ts +27 -0
- package/libs/es2021/full/index.d.ts +6 -0
- package/libs/es2021/index.d.ts +5 -0
- package/libs/es2021/intl/index.d.ts +159 -0
- package/libs/es2021/promise/index.d.ts +32 -0
- package/libs/es2021/string/index.d.ts +18 -0
- package/libs/es2021/weakref/index.d.ts +60 -0
- package/libs/es2022/array/index.d.ts +103 -0
- package/libs/es2022/error/index.d.ts +57 -0
- package/libs/es2022/full/index.d.ts +6 -0
- package/libs/es2022/index.d.ts +7 -0
- package/libs/es2022/intl/index.d.ts +142 -0
- package/libs/es2022/object/index.d.ts +40 -0
- package/libs/es2022/regexp/index.d.ts +23 -0
- package/libs/es2022/string/index.d.ts +7 -0
- package/libs/es2023/array/index.d.ts +913 -0
- package/libs/es2023/collection/index.d.ts +3 -0
- package/libs/es2023/full/index.d.ts +6 -0
- package/libs/es2023/index.d.ts +4 -0
- package/libs/es2023/intl/index.d.ts +112 -0
- package/libs/es2024/arraybuffer/index.d.ts +50 -0
- package/libs/es2024/collection/index.d.ts +11 -0
- package/libs/es2024/full/index.d.ts +6 -0
- package/libs/es2024/index.d.ts +8 -0
- package/libs/es2024/object/index.d.ts +11 -0
- package/libs/es2024/promise/index.d.ts +17 -0
- package/libs/es2024/regexp/index.d.ts +7 -0
- package/libs/es2024/sharedmemory/index.d.ts +67 -0
- package/libs/es2024/string/index.d.ts +11 -0
- package/libs/es2025/collection/index.d.ts +78 -0
- package/libs/es2025/float16/index.d.ts +503 -0
- package/libs/es2025/full/index.d.ts +6 -0
- package/libs/es2025/index.d.ts +7 -0
- package/libs/es2025/intl/index.d.ts +221 -0
- package/libs/es2025/iterator/index.d.ts +170 -0
- package/libs/es2025/promise/index.d.ts +19 -0
- package/libs/es2025/regexp/index.d.ts +14 -0
- package/libs/es5/index.d.ts +5844 -0
- package/libs/es6/index.d.ts +5 -0
- package/libs/esnext/array/index.d.ts +26 -0
- package/libs/esnext/collection/index.d.ts +31 -0
- package/libs/esnext/date/index.d.ts +5 -0
- package/libs/esnext/decorators/index.d.ts +10 -0
- package/libs/esnext/disposable/index.d.ts +173 -0
- package/libs/esnext/error/index.d.ts +6 -0
- package/libs/esnext/full/index.d.ts +6 -0
- package/libs/esnext/index.d.ts +11 -0
- package/libs/esnext/intl/index.d.ts +105 -0
- package/libs/esnext/sharedmemory/index.d.ts +7 -0
- package/libs/esnext/temporal/index.d.ts +684 -0
- package/libs/esnext/typedarrays/index.d.ts +78 -0
- package/libs/scripthost/index.d.ts +308 -0
- package/libs/webworker/asynciterable/index.d.ts +2 -0
- package/libs/webworker/importscripts/index.d.ts +5 -0
- package/libs/webworker/index.d.ts +18819 -0
- package/libs/webworker/iterable/index.d.ts +2 -0
- package/package.json +23 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare namespace Intl {
|
|
2
|
+
interface NumberFormatOptionsUseGroupingRegistry {
|
|
3
|
+
readonly min2: never;
|
|
4
|
+
readonly auto: never;
|
|
5
|
+
readonly always: never;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface NumberFormatOptionsSignDisplayRegistry {
|
|
9
|
+
readonly negative: never;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface NumberFormatRangePartTypeRegistry extends NumberFormatPartTypeRegistry {
|
|
13
|
+
readonly approximatelySign: never;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
type NumberFormatRangePartTypes = keyof NumberFormatRangePartTypeRegistry;
|
|
17
|
+
|
|
18
|
+
interface NumberFormatOptions {
|
|
19
|
+
readonly roundingPriority?:
|
|
20
|
+
| 'auto'
|
|
21
|
+
| 'morePrecision'
|
|
22
|
+
| 'lessPrecision'
|
|
23
|
+
| undefined;
|
|
24
|
+
readonly roundingIncrement?:
|
|
25
|
+
| 1
|
|
26
|
+
| 2
|
|
27
|
+
| 5
|
|
28
|
+
| 10
|
|
29
|
+
| 20
|
|
30
|
+
| 25
|
|
31
|
+
| 50
|
|
32
|
+
| 100
|
|
33
|
+
| 200
|
|
34
|
+
| 250
|
|
35
|
+
| 500
|
|
36
|
+
| 1000
|
|
37
|
+
| 2000
|
|
38
|
+
| 2500
|
|
39
|
+
| 5000
|
|
40
|
+
| undefined;
|
|
41
|
+
readonly roundingMode?:
|
|
42
|
+
| 'ceil'
|
|
43
|
+
| 'floor'
|
|
44
|
+
| 'expand'
|
|
45
|
+
| 'trunc'
|
|
46
|
+
| 'halfCeil'
|
|
47
|
+
| 'halfFloor'
|
|
48
|
+
| 'halfExpand'
|
|
49
|
+
| 'halfTrunc'
|
|
50
|
+
| 'halfEven'
|
|
51
|
+
| undefined;
|
|
52
|
+
readonly trailingZeroDisplay?: 'auto' | 'stripIfInteger' | undefined;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface ResolvedNumberFormatOptions {
|
|
56
|
+
readonly roundingPriority: 'auto' | 'morePrecision' | 'lessPrecision';
|
|
57
|
+
readonly roundingMode:
|
|
58
|
+
| 'ceil'
|
|
59
|
+
| 'floor'
|
|
60
|
+
| 'expand'
|
|
61
|
+
| 'trunc'
|
|
62
|
+
| 'halfCeil'
|
|
63
|
+
| 'halfFloor'
|
|
64
|
+
| 'halfExpand'
|
|
65
|
+
| 'halfTrunc'
|
|
66
|
+
| 'halfEven';
|
|
67
|
+
readonly roundingIncrement:
|
|
68
|
+
| 1
|
|
69
|
+
| 2
|
|
70
|
+
| 5
|
|
71
|
+
| 10
|
|
72
|
+
| 20
|
|
73
|
+
| 25
|
|
74
|
+
| 50
|
|
75
|
+
| 100
|
|
76
|
+
| 200
|
|
77
|
+
| 250
|
|
78
|
+
| 500
|
|
79
|
+
| 1000
|
|
80
|
+
| 2000
|
|
81
|
+
| 2500
|
|
82
|
+
| 5000;
|
|
83
|
+
readonly trailingZeroDisplay: 'auto' | 'stripIfInteger';
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface NumberRangeFormatPart {
|
|
87
|
+
readonly type: NumberFormatRangePartTypes;
|
|
88
|
+
readonly value: string;
|
|
89
|
+
readonly source: 'startRange' | 'endRange' | 'shared';
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type StringNumericLiteral =
|
|
93
|
+
| `${number}`
|
|
94
|
+
| 'Infinity'
|
|
95
|
+
| '-Infinity'
|
|
96
|
+
| '+Infinity';
|
|
97
|
+
|
|
98
|
+
interface NumberFormat {
|
|
99
|
+
format(value: number | bigint | StringNumericLiteral): string;
|
|
100
|
+
formatToParts(
|
|
101
|
+
value: number | bigint | StringNumericLiteral,
|
|
102
|
+
): NumberFormatPart[];
|
|
103
|
+
formatRange(
|
|
104
|
+
start: number | bigint | StringNumericLiteral,
|
|
105
|
+
end: number | bigint | StringNumericLiteral,
|
|
106
|
+
): string;
|
|
107
|
+
formatRangeToParts(
|
|
108
|
+
start: number | bigint | StringNumericLiteral,
|
|
109
|
+
end: number | bigint | StringNumericLiteral,
|
|
110
|
+
): NumberRangeFormatPart[];
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
interface ArrayBuffer {
|
|
2
|
+
/**
|
|
3
|
+
* If this ArrayBuffer is resizable, returns the maximum byte length given during construction; returns the byte length if not.
|
|
4
|
+
*
|
|
5
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/maxByteLength)
|
|
6
|
+
*/
|
|
7
|
+
get maxByteLength(): number;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if this ArrayBuffer can be resized.
|
|
11
|
+
*
|
|
12
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resizable)
|
|
13
|
+
*/
|
|
14
|
+
get resizable(): boolean;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Resizes the ArrayBuffer to the specified size (in bytes).
|
|
18
|
+
*
|
|
19
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize)
|
|
20
|
+
*/
|
|
21
|
+
resize(newByteLength?: number): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Returns a boolean indicating whether or not this buffer has been detached (transferred).
|
|
25
|
+
*
|
|
26
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/detached)
|
|
27
|
+
*/
|
|
28
|
+
get detached(): boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Creates a new ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
|
|
32
|
+
*
|
|
33
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transfer)
|
|
34
|
+
*/
|
|
35
|
+
transfer(newByteLength?: number): ArrayBuffer;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new non-resizable ArrayBuffer with the same byte content as this buffer, then detaches this buffer.
|
|
39
|
+
*
|
|
40
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/transferToFixedLength)
|
|
41
|
+
*/
|
|
42
|
+
transferToFixedLength(newByteLength?: number): ArrayBuffer;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface ArrayBufferConstructor {
|
|
46
|
+
new (
|
|
47
|
+
byteLength: number,
|
|
48
|
+
options?: { readonly maxByteLength?: number },
|
|
49
|
+
): ArrayBuffer;
|
|
50
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface MapConstructor {
|
|
2
|
+
/**
|
|
3
|
+
* Groups members of an iterable according to the return value of the passed callback.
|
|
4
|
+
* @param items An iterable.
|
|
5
|
+
* @param keySelector A callback which will be invoked for each item in items.
|
|
6
|
+
*/
|
|
7
|
+
groupBy<K, T>(
|
|
8
|
+
items: Iterable<T>,
|
|
9
|
+
keySelector: (item: T, index: number) => K,
|
|
10
|
+
): Map<K, T[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference lib="es2023" />
|
|
2
|
+
/// <reference lib="es2024.arraybuffer" />
|
|
3
|
+
/// <reference lib="es2024.collection" />
|
|
4
|
+
/// <reference lib="es2024.object" />
|
|
5
|
+
/// <reference lib="es2024.promise" />
|
|
6
|
+
/// <reference lib="es2024.regexp" />
|
|
7
|
+
/// <reference lib="es2024.sharedmemory" />
|
|
8
|
+
/// <reference lib="es2024.string" />
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ObjectConstructor {
|
|
2
|
+
/**
|
|
3
|
+
* Groups members of an iterable according to the return value of the passed callback.
|
|
4
|
+
* @param items An iterable.
|
|
5
|
+
* @param keySelector A callback which will be invoked for each item in items.
|
|
6
|
+
*/
|
|
7
|
+
groupBy<K extends PropertyKey, T>(
|
|
8
|
+
items: Iterable<T>,
|
|
9
|
+
keySelector: (item: T, index: number) => K,
|
|
10
|
+
): Partial<import('ts-type-forge').MutableRecord<K, T[]>>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface PromiseWithResolvers<T> {
|
|
2
|
+
readonly promise: Promise<T>;
|
|
3
|
+
readonly resolve: (value: T | PromiseLike<T>) => void;
|
|
4
|
+
readonly reject: (reason?: unknown) => void;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface PromiseConstructor {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new Promise and returns it in an object, along with its resolve and reject functions.
|
|
10
|
+
* @returns An object with the properties `promise`, `resolve`, and `reject`.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* const { promise, resolve, reject } = Promise.withResolvers<T>();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
withResolvers<T>(): PromiseWithResolvers<T>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/// <reference lib="es2020.bigint" />
|
|
2
|
+
|
|
3
|
+
interface Atomics {
|
|
4
|
+
/**
|
|
5
|
+
* A non-blocking, asynchronous version of wait which is usable on the main thread.
|
|
6
|
+
* Waits asynchronously on a shared memory location and returns a Promise
|
|
7
|
+
* @param typedArray A shared Int32Array or BigInt64Array.
|
|
8
|
+
* @param index The position in the typedArray to wait on.
|
|
9
|
+
* @param value The expected value to test.
|
|
10
|
+
* @param [timeout] The expected value to test.
|
|
11
|
+
*/
|
|
12
|
+
waitAsync(
|
|
13
|
+
typedArray: Int32Array,
|
|
14
|
+
index: number,
|
|
15
|
+
value: number,
|
|
16
|
+
timeout?: number,
|
|
17
|
+
):
|
|
18
|
+
| { readonly async: false; readonly value: 'not-equal' | 'timed-out' }
|
|
19
|
+
| { readonly async: true; readonly value: Promise<'ok' | 'timed-out'> };
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A non-blocking, asynchronous version of wait which is usable on the main thread.
|
|
23
|
+
* Waits asynchronously on a shared memory location and returns a Promise
|
|
24
|
+
* @param typedArray A shared Int32Array or BigInt64Array.
|
|
25
|
+
* @param index The position in the typedArray to wait on.
|
|
26
|
+
* @param value The expected value to test.
|
|
27
|
+
* @param [timeout] The expected value to test.
|
|
28
|
+
*/
|
|
29
|
+
waitAsync(
|
|
30
|
+
typedArray: BigInt64Array,
|
|
31
|
+
index: number,
|
|
32
|
+
value: bigint,
|
|
33
|
+
timeout?: number,
|
|
34
|
+
):
|
|
35
|
+
| { readonly async: false; readonly value: 'not-equal' | 'timed-out' }
|
|
36
|
+
| { readonly async: true; readonly value: Promise<'ok' | 'timed-out'> };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface SharedArrayBuffer {
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if this SharedArrayBuffer can be grown.
|
|
42
|
+
*
|
|
43
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/growable)
|
|
44
|
+
*/
|
|
45
|
+
get growable(): boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* If this SharedArrayBuffer is growable, returns the maximum byte length given during construction; returns the byte length if not.
|
|
49
|
+
*
|
|
50
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/maxByteLength)
|
|
51
|
+
*/
|
|
52
|
+
get maxByteLength(): number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Grows the SharedArrayBuffer to the specified size (in bytes).
|
|
56
|
+
*
|
|
57
|
+
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/grow)
|
|
58
|
+
*/
|
|
59
|
+
grow(newByteLength?: number): void;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface SharedArrayBufferConstructor {
|
|
63
|
+
new (
|
|
64
|
+
byteLength: number,
|
|
65
|
+
options?: { readonly maxByteLength?: number },
|
|
66
|
+
): SharedArrayBuffer;
|
|
67
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface String {
|
|
2
|
+
/**
|
|
3
|
+
* Returns true if all leading surrogates and trailing surrogates appear paired and in order.
|
|
4
|
+
*/
|
|
5
|
+
isWellFormed(): boolean;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Returns a string where all lone or out-of-order surrogates have been replaced by the Unicode replacement character (U+FFFD).
|
|
9
|
+
*/
|
|
10
|
+
toWellFormed(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/// <reference lib="es2024.collection" />
|
|
2
|
+
|
|
3
|
+
interface ReadonlySetLike<T> {
|
|
4
|
+
/**
|
|
5
|
+
* Despite its name, returns an iterator of the values in the set-like.
|
|
6
|
+
*/
|
|
7
|
+
keys(): Iterator<T>;
|
|
8
|
+
/**
|
|
9
|
+
* @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
|
|
10
|
+
*/
|
|
11
|
+
has(value: T): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @returns the number of (unique) elements in the set-like.
|
|
14
|
+
*/
|
|
15
|
+
readonly size: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface Set<T> {
|
|
19
|
+
/**
|
|
20
|
+
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
|
|
21
|
+
*/
|
|
22
|
+
union<U>(other: ReadonlySetLike<U>): ReadonlySet<T | U>;
|
|
23
|
+
/**
|
|
24
|
+
* @returns a new Set containing all the elements which are both in this Set and in the argument.
|
|
25
|
+
*/
|
|
26
|
+
intersection<U>(other: ReadonlySetLike<U>): ReadonlySet<T & U>;
|
|
27
|
+
/**
|
|
28
|
+
* @returns a new Set containing all the elements in this Set which are not also in the argument.
|
|
29
|
+
*/
|
|
30
|
+
difference<U>(other: ReadonlySetLike<U>): ReadonlySet<T>;
|
|
31
|
+
/**
|
|
32
|
+
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
|
|
33
|
+
*/
|
|
34
|
+
symmetricDifference<U>(other: ReadonlySetLike<U>): ReadonlySet<T | U>;
|
|
35
|
+
/**
|
|
36
|
+
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
|
|
37
|
+
*/
|
|
38
|
+
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
|
|
41
|
+
*/
|
|
42
|
+
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @returns a boolean indicating whether this Set has no elements in common with the argument.
|
|
45
|
+
*/
|
|
46
|
+
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface ReadonlySet<T> {
|
|
50
|
+
/**
|
|
51
|
+
* @returns a new Set containing all the elements in this Set and also all the elements in the argument.
|
|
52
|
+
*/
|
|
53
|
+
union<U>(other: ReadonlySetLike<U>): ReadonlySet<T | U>;
|
|
54
|
+
/**
|
|
55
|
+
* @returns a new Set containing all the elements which are both in this Set and in the argument.
|
|
56
|
+
*/
|
|
57
|
+
intersection<U>(other: ReadonlySetLike<U>): ReadonlySet<T & U>;
|
|
58
|
+
/**
|
|
59
|
+
* @returns a new Set containing all the elements in this Set which are not also in the argument.
|
|
60
|
+
*/
|
|
61
|
+
difference<U>(other: ReadonlySetLike<U>): ReadonlySet<T>;
|
|
62
|
+
/**
|
|
63
|
+
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both.
|
|
64
|
+
*/
|
|
65
|
+
symmetricDifference<U>(other: ReadonlySetLike<U>): ReadonlySet<T | U>;
|
|
66
|
+
/**
|
|
67
|
+
* @returns a boolean indicating whether all the elements in this Set are also in the argument.
|
|
68
|
+
*/
|
|
69
|
+
isSubsetOf(other: ReadonlySetLike<unknown>): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* @returns a boolean indicating whether all the elements in the argument are also in this Set.
|
|
72
|
+
*/
|
|
73
|
+
isSupersetOf(other: ReadonlySetLike<unknown>): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @returns a boolean indicating whether this Set has no elements in common with the argument.
|
|
76
|
+
*/
|
|
77
|
+
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean;
|
|
78
|
+
}
|