Commit Graph

20 Commits

Author SHA1 Message Date
Mohamed Hegazy
4dd1f9fc7c Consolidate overloads in constructors for Map, Set, WeakMap, and WeakSet
Fixes https://github.com/Microsoft/TypeScript/issues/23551
Fixes https://github.com/Microsoft/TypeScript/issues/25362
2018-07-02 11:58:48 -07:00
Vimal Raghubir
b883a82f9f Fix issue regarding WeakMap constructor 2018-06-25 12:53:41 -04:00
EcoleKeine
e7a3d4b192 Some Constructor's signature missing null type
according to ECMAScript® 2015 Language Specification - http://www.ecma-international.org/ecma-262/6.0

MapConstructor : 23.1.1.1 step6
WeakMapConstructor : 23.2.1.1 step6
SetConstructor : 23.3.1.1 step6
WeakSetConstructor : 23.4.1.1 step6
2018-03-14 00:11:43 +08:00
falsandtru
da593ca7a8 Fix WeakSet interface (#19756) 2018-01-09 22:06:06 -08:00
Andy
fd5ed5ac79 Have Set and Map constructors take ReadonlyArrays (#20606) 2018-01-08 11:39:52 -08:00
Mohamed Hegazy
552f1d85c9 Revert changes to WeakSet defitions adding object constraint
This reverts the changes to WeakSet done in https://github.com/Microsoft/TypeScript/pull/15124 to avoid breaks in existing @types packages like @types/lodash
2017-04-19 13:55:13 -07:00
falsandtru
8a851f3702 Use object type 2017-04-11 21:39:51 +09:00
Andy Hanson
2305c10a65 Fix lint errors 2017-03-17 13:54:18 -07:00
Nathan Shively-Sanders
aeeff28fd6 Merge pull request #13350 from HerringtonDarkholme/lib
update declaration file to use intrinsic object type
2017-01-27 10:29:03 -08:00
falsandtru
21c2c0e786 Fix regressions 2017-01-20 23:05:45 +09:00
Herrington Darkholme
e8af1d285b update declaration file to use intrinsic object type 2017-01-08 18:31:56 +08:00
Gabe Moothart
a9d4b3016a indenting 2016-09-15 10:47:19 -07:00
Gabe Moothart
e2ee3c5c15 Removed constructor typings which can't be used
Also corrected some parameter names.
2016-09-15 10:33:06 -07:00
Gabe Moothart
2468d440d9 Add readonly typings for Set and Map
Similar to ReadonlyArray, these typings remove the mutation methods from Set and Map so that they can only be initialized by the constructor.
2016-09-14 11:06:28 -07:00
Zhengbo Li
21736a1dbb Fix #6500 (#10728) 2016-09-06 11:36:23 -07:00
Arnavion
73590f4fb1 {Map, WeakMap}.set and {Set, WeakSet}.add return this. 2016-05-07 16:24:30 -07:00
Yui
673fa41418 Fix 8407: Allow (weak)map & (weak)set constructor when targeting ES5 using ES6 library (#8451)
* Move iterabl related stuffs off from es2015.collection

* Move symbol.wellknown stuffs off from es2015.collection

* Add map & set constructor support when targeting ES5

* Address PR: move symbol.iterator to es2015.iterable

* Move Symbol.Iterator into es2015.iterable

* Update baselines
2016-05-05 11:10:00 -07:00
Kanchalai Tanglertsampan
95d4983c6e Add nullability into signature 2016-04-05 11:38:12 -07:00
Kanchalai Tanglertsampan
15367e7dc5 Clean up library files 2016-03-28 16:26:15 -07:00
Kanchalai Tanglertsampan
4e6cef2965 Addres PR: change lib filenames from es6 to es2015 and es7 to es2016 2016-03-28 14:49:22 -07:00