Add function

This commit is contained in:
Mohamed Hegazy
2016-11-21 23:27:18 -08:00
parent 8a334ac00d
commit 72df02cbbd
4 changed files with 39 additions and 34 deletions

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

@@ -186,7 +186,7 @@ interface ObjectConstructor {
* 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<T, U>(f: (...args: T[]) => U): (...args: T[]) => U;
freeze<T>(f: (...args: any[]) => T): (...args: any[]) => T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.