summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-03-21 11:46:40 -0400
committerGitHub <noreply@github.com>2023-03-21 15:46:40 +0000
commit2fcf1f14cf29bb68995f652f93a4f6e3cb55c8d7 (patch)
tree04fb972934969cb01a52f3b9b8af0a17134ef5b6 /cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
parent0366d6833f25b786e897ce0d6393f692507f0532 (diff)
feat: TypeScript 5.0.2 (except decorators) (#18294)
This upgrades TypeScript to 5.0.2, but does not have ES decorator support because swc does not support that yet.
Diffstat (limited to 'cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts')
-rw-r--r--cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts26
1 files changed, 14 insertions, 12 deletions
diff --git a/cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts b/cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
index 81e052bf2..f2d9b4f0a 100644
--- a/cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
+++ b/cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts
@@ -14,10 +14,8 @@ and limitations under the License.
***************************************************************************** */
-
/// <reference no-default-lib="true"/>
-
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
@@ -76,7 +74,7 @@ interface SymbolConstructor {
readonly toStringTag: unique symbol;
/**
- * An Object whose own property names are property names that are excluded from the 'with'
+ * An Object whose truthy properties are properties that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
@@ -93,17 +91,21 @@ interface Symbol {
interface Array<T> {
/**
- * Returns an object whose properties have the value 'true'
+ * Is an object whose properties have the value 'true'
+ * when they will be absent when used in a 'with' statement.
+ */
+ readonly [Symbol.unscopables]: {
+ [K in keyof any[]]?: boolean;
+ };
+}
+
+interface ReadonlyArray<T> {
+ /**
+ * Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
- [Symbol.unscopables](): {
- copyWithin: boolean;
- entries: boolean;
- fill: boolean;
- find: boolean;
- findIndex: boolean;
- keys: boolean;
- values: boolean;
+ readonly [Symbol.unscopables]: {
+ [K in keyof readonly any[]]?: boolean;
};
}