typescript 4.7.0-dev.20220301 → 4.7.0-dev.20220304
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/lib/lib.es2015.reflect.d.ts +1 -1
- package/lib/lib.es5.d.ts +6 -0
- package/lib/tsc.js +869 -669
- package/lib/tsserver.js +1197 -990
- package/lib/tsserverlibrary.d.ts +84 -66
- package/lib/tsserverlibrary.js +1197 -990
- package/lib/typescript.d.ts +84 -66
- package/lib/typescript.js +1185 -978
- package/lib/typescriptServices.d.ts +84 -66
- package/lib/typescriptServices.js +1185 -978
- package/lib/typingsInstaller.js +1000 -794
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ declare namespace Reflect {
|
|
|
44
44
|
* @param propertyKey The property name.
|
|
45
45
|
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
|
|
46
46
|
*/
|
|
47
|
-
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
|
|
47
|
+
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Removes a property from an object, equivalent to `delete target[propertyKey]`,
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -226,6 +226,12 @@ interface ObjectConstructor {
|
|
|
226
226
|
*/
|
|
227
227
|
freeze<T extends Function>(f: T): T;
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
231
|
+
* @param o Object on which to lock the attributes.
|
|
232
|
+
*/
|
|
233
|
+
freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | symbol>(o: T): Readonly<T>;
|
|
234
|
+
|
|
229
235
|
/**
|
|
230
236
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
231
237
|
* @param o Object on which to lock the attributes.
|