We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb037f5 commit 0474d63Copy full SHA for 0474d63
src/lib/es5.d.ts
@@ -204,6 +204,12 @@ interface ObjectConstructor {
204
*/
205
freeze<T extends Function>(f: T): T;
206
207
+ /**
208
+ * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
209
+ * @param o Object on which to lock the attributes.
210
+ */
211
+ freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | number | symbol>(o: T): Readonly<T>;
212
+
213
/**
214
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
215
* @param o Object on which to lock the attributes.
0 commit comments