Remove (hopefully) unnecessary overload.

This commit is contained in:
Daniel Rosenwasser 2023-01-20 00:15:00 +00:00
parent 241b3f2fe2
commit 9705b7186c

6
src/lib/es5.d.ts vendored
View File

@ -203,12 +203,6 @@ interface ObjectConstructor {
*/
freeze<T extends Function>(f: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<const T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.