From 63eec9c926ef31418e3fd583ee141452e5403cbe Mon Sep 17 00:00:00 2001 From: falsandtru Date: Sat, 10 Sep 2016 03:29:34 +0900 Subject: [PATCH] Fix {Map,WeakMap}.prototype.set method signatures (#10694) --- lib/lib.es2015.collection.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lib.es2015.collection.d.ts b/lib/lib.es2015.collection.d.ts index f014185d9e1..175f4f8725e 100644 --- a/lib/lib.es2015.collection.d.ts +++ b/lib/lib.es2015.collection.d.ts @@ -20,7 +20,7 @@ interface Map { forEach(callbackfn: (value: V, index: K, map: Map) => void, thisArg?: any): void; get(key: K): V | undefined; has(key: K): boolean; - set(key: K, value?: V): this; + set(key: K, value: V): this; readonly size: number; } @@ -36,7 +36,7 @@ interface WeakMap { delete(key: K): boolean; get(key: K): V | undefined; has(key: K): boolean; - set(key: K, value?: V): this; + set(key: K, value: V): this; } interface WeakMapConstructor {