typescript 5.0.0-dev.20230221 → 5.0.0-dev.20230223

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.
@@ -74,7 +74,7 @@ interface SymbolConstructor {
74
74
  readonly toStringTag: unique symbol;
75
75
 
76
76
  /**
77
- * An Object whose own property names are property names that are excluded from the 'with'
77
+ * An Object whose truthy properties are properties that are excluded from the 'with'
78
78
  * environment bindings of the associated objects.
79
79
  */
80
80
  readonly unscopables: unique symbol;
@@ -91,17 +91,21 @@ interface Symbol {
91
91
 
92
92
  interface Array<T> {
93
93
  /**
94
- * Returns an object whose properties have the value 'true'
94
+ * Is an object whose properties have the value 'true'
95
95
  * when they will be absent when used in a 'with' statement.
96
96
  */
97
- [Symbol.unscopables](): {
98
- copyWithin: boolean;
99
- entries: boolean;
100
- fill: boolean;
101
- find: boolean;
102
- findIndex: boolean;
103
- keys: boolean;
104
- values: boolean;
97
+ readonly [Symbol.unscopables]: {
98
+ [K in keyof any[]]?: boolean;
99
+ };
100
+ }
101
+
102
+ interface ReadonlyArray<T> {
103
+ /**
104
+ * Is an object whose properties have the value 'true'
105
+ * when they will be absent when used in a 'with' statement.
106
+ */
107
+ readonly [Symbol.unscopables]: {
108
+ [K in keyof readonly any[]]?: boolean;
105
109
  };
106
110
  }
107
111