From 700156211063f20c5dd07df893d7abc8351fd071 Mon Sep 17 00:00:00 2001 From: Dick van den Brink Date: Mon, 9 Mar 2015 23:48:51 +0100 Subject: [PATCH] made seal, freeze and preventExtensions generic --- src/lib/core.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/core.d.ts b/src/lib/core.d.ts index bbaddeeacc1..040eb69ae96 100644 --- a/src/lib/core.d.ts +++ b/src/lib/core.d.ts @@ -164,19 +164,19 @@ interface ObjectConstructor { * Prevents the modification of attributes of existing properties, and prevents the addition of new properties. * @param o Object on which to lock the attributes. */ - seal(o: any): any; + seal(o: 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(o: any): any; + freeze(o: T): T; /** * Prevents the addition of new properties to an object. * @param o Object to make non-extensible. */ - preventExtensions(o: any): any; + preventExtensions(o: T): T; /** * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.