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
Mohamed Hegazy
2f9879c45e
Update other defintions of findIndex
2016-09-13 22:41:40 -07:00
Mohamed Hegazy
d42dbfa317
Merge branch 'sergey-shandar-findindex' of https://github.com/sergey-shandar/TypeScript into sergey-shandar-sergey-shandar-findindex
2016-09-13 22:36:15 -07:00
Jeffrey Morlan
48a610c34f
Fix ECMA-402 declarations (issue #10618 )
...
1. Make String.prototype.localeCompare's `locales` parameter optional,
so `undefined` is allowed.
2. Declare the `locales` parameter as a `string | string[]` union
instead of using overloads. Having separate overloads for `string`
and `string[]` unnecessarily prevents passing a `string | string[]`.
(These overloads predate the introduction of union types.)
2016-09-10 12:25:39 -07:00
Mohamed Hegazy
a63c1c8ab2
Merge pull request #10027 from maiermic/type-guards-in-Array.prototype.filter
...
add Array.prototype.filter signature with type guard
2016-09-06 12:59:29 -07:00
Zhengbo Li
21736a1dbb
Fix #6500 ( #10728 )
2016-09-06 11:36:23 -07:00
zhengbli
794d3e91d0
routine update of dom libs
2016-08-20 20:35:58 -07:00
Nathan Shively-Sanders
ce5e2078ee
Improve ReadonlyArray<T>.concat to match Array<T>
...
The Array-based signature was incorrect and also out-of-date.
2016-08-16 11:29:09 -07:00
Yui
9c83243f33
Add ES2015 Date constructor signature that accepts another Date ( #10353 )
2016-08-15 15:16:54 -07:00
joshaber
8975cd7024
Make ReadonlyArray iterable.
2016-08-09 23:00:47 -04:00
Nathan Shively-Sanders
5f665ad353
Merge pull request #9996 from joshaber/patch-1
...
Add `find` and `findIndex` to ReadonlyArray
2016-08-08 09:11:09 -07:00
Nathan Shively-Sanders
4a470bd27c
Merge pull request #9997 from Microsoft/re-add-strict-concat-signature
...
Re-add strict concat signature
2016-08-02 11:06:18 -07:00
Michael
dbd8dd5c88
add Array.prototype.filter signature with type guard
2016-07-29 15:56:33 +02:00
Nathan Shively-Sanders
09f518243d
Re-add concat overload to support inferring tuples
2016-07-27 15:33:36 -07:00
Josh Abernathy
34e78e6dc1
The optional this should be readonly too.
2016-07-27 16:42:14 -04:00
Josh Abernathy
3446557eae
Add find and findIndex to ReadonlyArray
2016-07-27 16:40:43 -04:00
Jakub Młokosiewicz
34744802bc
Fix typo in comment for MAX_SAFE_INTEGER
2016-07-26 14:58:16 +02:00
Daniel Rosenwasser
4de0a05402
Make TemplateStringsArray completely immutable.
2016-07-07 11:52:07 -07:00
Mohamed Hegazy
29985f33b7
Update language in comment
2016-07-05 16:11:22 -07:00
Yui
19c141aefe
Fix PromiseLike to be compatible with es6-promise ( #9484 )
2016-07-02 21:50:13 -07:00
Mohamed Hegazy
b5247959e9
Merge pull request #9405 from zspitz/patch-1
...
getVarDate should be on the Date interface
2016-06-29 01:11:14 -07:00
Zev Spitz
27e66b0bc8
getVarDate should be on the Date interface
2016-06-29 02:16:18 +03:00
zhengbli
ddadb472a6
Add This type to lib
2016-06-28 14:45:56 -07:00
Zev Spitz
3fdaf194f7
VarDate interface and relevant Date.prototype members
2016-06-28 21:26:18 +02:00
Ron Buckton
12bfb7e987
Merge pull request #9204 from Microsoft/promiseAndAsyncUpdates
...
Update Promise and PromiseLike, fix async functions issues with never.
2016-06-21 18:09:28 -07:00
zhengbli
634818cbac
Add missing worker types
2016-06-18 20:35:52 -07:00
Mohamed Hegazy
f568ad0ce4
Add conditional index signature for Canvas2DContextAttributes ( https://github.com/Microsoft/TypeScript/issues/9244 )
2016-06-18 12:01:29 -07:00
zhengbli
48a340f43c
routine dom update
2016-06-17 13:02:26 -07:00
Ron Buckton
fb9806b5f9
Updates type definitions for Promise and PromiseLike, fixes issues in async functions due to introduction of never type.
...
Fixes #9193 .
2016-06-15 17:36:27 -07:00
Mohamed Hegazy
d36d2b3eaa
Merge pull request #8771 from YuichiNukiyama/fix8505
...
add SharedArrayBuffer
2016-06-08 13:27:09 -07:00
york yao
f5ab9d7289
change type definition for Object.create
2016-06-06 07:22:37 +08:00
Sergey Shandar
cdb0fb324f
Fix findIndex documentation.
2016-06-04 03:26:17 -07:00
Yuichi Nukiyama
4e415ebfd0
add SharedArrayBuffer
...
fix
2016-05-24 00:41:44 +09:00
Mohamed Hegazy
f1662f8a18
Fix #8729 : Make JSON.stringify accept null and undefined replacers
2016-05-21 12:59:09 -07:00
Juan Luis Boya García
5fb68da1ad
Modified all other findIndex() definitions
2016-05-20 12:17:15 +02:00
Juan Luis Boya García
0128192600
Fix findIndex definition
2016-05-20 03:41:56 +02:00
Noj Vek
94d8888b09
Fix #8582 : Add Error.prototype.stack definition
2016-05-14 17:29:04 -07:00
Yui
b68e93966a
Fix 8482: Add Object.values and Object.entries ( #8538 )
...
* Add es2017.Object library file
* Add tests and baselines
* Fix unittest
* Add es2017 lib flag
* Update baselines
* Add tests and baselines
* Address PR: add tests
* Address PR: add tests
2016-05-10 14:22:00 -07:00
Arnavion
0b789ff0bc
Add string literal union type overload for String.normalize parameter.
2016-05-07 16:29:45 -07:00
Arnavion
8bb75ec3da
{Array, TypedArray}.{copyWithin, fill, sort} return this.
2016-05-07 16:28:15 -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
Mohamed Hegazy
9ad08324d8
Fix #8357 : Remove optionality for the definition of IteratorResult
2016-05-03 15:53:17 -07:00
Mohamed Hegazy
b6e98e52c6
Fix #8338 : add signatures to RegExp constructor accepting RegExp
2016-04-28 14:48:53 -07:00
Nathan Shively-Sanders
465e9c82ff
Revert Function.bind/apply/call this-overloads
2016-04-28 08:48:08 -07:00
Zhengbo Li
a1039bb061
Routine update of dom lib files
2016-04-27 13:22:10 -07:00
Nima Zahedi
3e2fff2150
Array.prototype.filter.not.forcing.boolean ( #7779 )
...
* Add test for issue
* Fix issue
* Add baselines
* fix issue
2016-04-18 12:46:52 -07:00
Zhengbo Li
b9c4b026fe
Merge pull request #7619 from zhengbli/updateDom20160321
...
Routine update of dom-related lib.d.ts
2016-04-07 15:33:43 -07:00