Ron Buckton
1c0917abef
Merge branch 'master' into asyncGenerators
2016-11-18 10:32:54 -08:00
Ryan Cavanaugh
29481f67f4
Revert "fix #11670 , support type guards in NumberConstructor ( #11722 )"
...
This reverts commit 4fbbbed321 .
2016-11-16 16:25:23 -08:00
Ron Buckton
28d23ce8de
Add for-await-of, always use Symbol for iterables.
2016-11-16 14:22:42 -08:00
Ron Buckton
ab1dc522a4
Merge branch 'emitHelper' into asyncGenerators
2016-11-16 12:23:32 -08:00
Anders Hejlsberg
d32196ff36
Add predefined mapped types and revise Object.freeze
2016-11-15 12:14:46 -08:00
Mohamed Hegazy
2827b370cc
Merge pull request #12207 from ethanresnick/precise-object-entry-types
...
More precise Object.entries type declarations
2016-11-14 13:55:27 -08:00
(´・ω・`)
4166eeb284
fix #12137 , correct ProxyHandler signatures ( #12172 )
...
* fix #12137 , correct ProxyHandler signatures
* address PR review
2016-11-13 15:27:07 -08:00
Ethan Resnick
ea33d6e501
More precise Object.entries type declarations
...
We can leverage the new index type queries and indexed access types
from #11929 to get better type inference for Object.entries.
2016-11-13 02:59:50 -05:00
Cotton Hou
9a8e1bf8a6
Add ES2017 string padding ( #12152 )
...
* add es2017.string.d.ts for String.prototype.{padStart,padEnd}
* append es2017.string.d.ts into es2017.d.ts
* add es2017.string into commandLineParser
* append es2017.string into error message for unit tests of commandLineParser
* append es2017.string into Gulpfile
* append es2017.string into Jakefile
2016-11-10 12:43:51 -08:00
Ron Buckton
4f3fb80b98
Parse, check, and downlevel emit for for-await-of
2016-11-09 17:40:17 -08:00
Ron Buckton
4b5686a52f
Added emit transforms for async generators.
2016-11-09 17:06:08 -08:00
Ron Buckton
b5cc96c87d
Merge branch 'asyncGeneratorsUpLevel' into asyncGenerators
2016-11-09 14:57:23 -08:00
Ron Buckton
bd867785bc
type checking for pseudoiterable
2016-11-09 14:40:47 -08:00
Ron Buckton
74ec093d01
Merge branch 'emitHelper' into asyncGenerators
2016-11-08 18:13:31 -08:00
Mohamed Hegazy
2bf38ab6cd
Port fix for https://github.com/Microsoft/TypeScript/issues/12069 ( #12095 )
2016-11-07 21:09:17 -08:00
Ron Buckton
c6ee25d95b
Type checking for async iterables and async generators.
2016-11-05 18:48:33 -07:00
Ron Buckton
cb853569e4
Relaxed ES2015 restrictions for generator type check
2016-11-05 11:50:54 -07:00
Mohamed Hegazy
8984e43b20
Update generated files ( #11963 )
2016-10-31 13:15:46 -07:00
(´・ω・`)
4fbbbed321
fix #11670 , support type guards in NumberConstructor ( #11722 )
2016-10-19 14:10:44 -07:00
Mohamed Hegazy
2cd404038e
Port fix in https://github.com/Microsoft/TypeScript/pull/11293 to correct file
2016-10-13 17:26:12 -07:00
Michael
e9242b1681
fix typo in type definition ( #11346 )
2016-10-13 16:23:14 -07:00
Daniel Rosenwasser
7f3db5cf18
Added overloads for 'map' on tuple types.
2016-09-29 00:41:06 -07:00
zhengbli
c08e2bfd28
update dom libs
2016-09-26 16:52:25 -07:00
Mohamed Hegazy
1e9d7e5f66
Fix #10002 : add dom.iterable to supported lib values
2016-09-20 17:11:39 -07:00
Justin Johansson
fc4a5df632
Fix Reflect has method signature(s) per issue #10949 initial report
2016-09-17 12:00:35 +09:30
Mohamed Hegazy
9d8d2b6cf7
Merge pull request #10921 from gmoothart/readonly-collections
...
Add readonly typings for Set and Map
2016-09-15 11:26:29 -07: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
Mohamed Hegazy
10b3d73324
Merge pull request #10917 from Salasar/Fix10843
...
Fix 10843: Change Array.prototype.findIndex method definition according to ES6 spec
2016-09-15 09:18:16 -07:00
Rostislav Galimsky
df5e176e17
update findIndex for es5 typed arrays
2016-09-15 08:39:45 +03:00
Ron Buckton
3e1da93d6e
Merge pull request #10448 from Microsoft/improvePromiseType
...
Improve Promise type definition
2016-09-14 11:58:25 -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
Rostislav Galimsky
9ff425b574
Fix issue 10843
2016-09-14 20:05:12 +03: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
Ron Buckton
9d4219acf1
Adjust overloads to fix #10524 .
2016-09-06 15:23:11 -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
Ron Buckton
ab2750a631
Improves Promise type definition.
...
Fixes #4903
2016-08-20 00:39:41 -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