typescript
Advanced tools
Comparing version 5.5.0-dev.20240516 to 5.5.0-dev.20240517
@@ -30,1 +30,78 @@ /*! ***************************************************************************** | ||
} | ||
interface ReadonlySetLike<T> { | ||
/** | ||
* Despite its name, returns an iterator of the values in the set-like. | ||
*/ | ||
keys(): Iterator<T>; | ||
/** | ||
* @returns a boolean indicating whether an element with the specified value exists in the set-like or not. | ||
*/ | ||
has(value: T): boolean; | ||
/** | ||
* @returns the number of (unique) elements in the set-like. | ||
*/ | ||
readonly size: number; | ||
} | ||
interface Set<T> { | ||
/** | ||
* @returns a new Set containing all the elements in this Set and also all the elements in the argument. | ||
*/ | ||
union<U>(other: ReadonlySetLike<U>): Set<T | U>; | ||
/** | ||
* @returns a new Set containing all the elements which are both in this Set and in the argument. | ||
*/ | ||
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>; | ||
/** | ||
* @returns a new Set containing all the elements in this Set which are not also in the argument. | ||
*/ | ||
difference<U>(other: ReadonlySetLike<U>): Set<T>; | ||
/** | ||
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both. | ||
*/ | ||
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>; | ||
/** | ||
* @returns a boolean indicating whether all the elements in this Set are also in the argument. | ||
*/ | ||
isSubsetOf(other: ReadonlySetLike<unknown>): boolean; | ||
/** | ||
* @returns a boolean indicating whether all the elements in the argument are also in this Set. | ||
*/ | ||
isSupersetOf(other: ReadonlySetLike<unknown>): boolean; | ||
/** | ||
* @returns a boolean indicating whether this Set has no elements in common with the argument. | ||
*/ | ||
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean; | ||
} | ||
interface ReadonlySet<T> { | ||
/** | ||
* @returns a new Set containing all the elements in this Set and also all the elements in the argument. | ||
*/ | ||
union<U>(other: ReadonlySetLike<U>): Set<T | U>; | ||
/** | ||
* @returns a new Set containing all the elements which are both in this Set and in the argument. | ||
*/ | ||
intersection<U>(other: ReadonlySetLike<U>): Set<T & U>; | ||
/** | ||
* @returns a new Set containing all the elements in this Set which are not also in the argument. | ||
*/ | ||
difference<U>(other: ReadonlySetLike<U>): Set<T>; | ||
/** | ||
* @returns a new Set containing all the elements which are in either this Set or in the argument, but not in both. | ||
*/ | ||
symmetricDifference<U>(other: ReadonlySetLike<U>): Set<T | U>; | ||
/** | ||
* @returns a boolean indicating whether all the elements in this Set are also in the argument. | ||
*/ | ||
isSubsetOf(other: ReadonlySetLike<unknown>): boolean; | ||
/** | ||
* @returns a boolean indicating whether all the elements in the argument are also in this Set. | ||
*/ | ||
isSupersetOf(other: ReadonlySetLike<unknown>): boolean; | ||
/** | ||
* @returns a boolean indicating whether this Set has no elements in common with the argument. | ||
*/ | ||
isDisjointFrom(other: ReadonlySetLike<unknown>): boolean; | ||
} |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.typescriptlang.org/", | ||
"version": "5.5.0-dev.20240516", | ||
"version": "5.5.0-dev.20240517", | ||
"license": "Apache-2.0", | ||
@@ -114,3 +114,3 @@ "description": "TypeScript is a language for application scale JavaScript development", | ||
}, | ||
"gitHead": "5c21b7fd93cc60b05d560f931fb8bb26d7972f76" | ||
"gitHead": "79a851426c514a12a75b342e8dd2460ee6615f73" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21806166
88060