Skip to content

Commit 15d870b

Browse files
committed
Use Function instead of call and construct signatures
1 parent 6039556 commit 15d870b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/lib/es5.d.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -186,19 +186,7 @@ interface ObjectConstructor {
186186
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
187187
* @param o Object on which to lock the attributes.
188188
*/
189-
freeze<T extends (...args: any[]) => any>(f: T): T;
190-
191-
/**
192-
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
193-
* @param o Object on which to lock the attributes.
194-
*/
195-
freeze<T extends new (...args: any[]) => any>(c: T): T;
196-
197-
/**
198-
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
199-
* @param o Object on which to lock the attributes.
200-
*/
201-
freeze<T>(f: (...args: any[]) => T): (...args: any[]) => T;
189+
freeze<T extends Function>(f: T): T;
202190

203191
/**
204192
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.

0 commit comments

Comments
 (0)