354 Commits

Author SHA1 Message Date
e-cloud
cedad974d2 fix: add generic info for methods with thisArg of built-in classes
when enabling `noImplicitThis`, if assing this argument for
methods like `array.forEach` will cause compilation error.
This commit fixes it.

fix #12548
2017-03-09 11:52:54 +08:00
Anders Hejlsberg
7561cdf6bf Add ThisType<any> to Object.{create|defineProperty|defineProperties} 2017-03-01 17:16:09 -08:00
Anders Hejlsberg
ee7b93c1a0 Merge branch 'master' into contextualThisType 2017-02-28 09:52:03 -08:00
Mohamed Hegazy
a89c62a268 Fix #14136: Make Object.create return any all the time 2017-02-17 16:47:51 -08:00
Anders Hejlsberg
fe32bb7642 Merge branch 'master' into contextualThisType 2017-02-16 20:15:55 -08:00
Ron Buckton
cf72ceb093 Merge branch 'master' into asyncGenerators 2017-02-16 17:22:43 -08:00
Anders Hejlsberg
8cd6c5d8eb Introduce ThisType<T> marker interface 2017-02-16 17:03:39 -08:00
Ron Buckton
23216f9ba1 Merge branch 'master' into genericDefaults 2017-02-14 19:19:18 -08:00
Mohamed Hegazy
ae02db4950 Merge pull request #13936 from Microsoft/FixObjectCreate
Fix #13932: Change the order of overloads and allow union for `Object.create`
2017-02-14 13:29:41 -08:00
Mohamed Hegazy
891b1aecde Merge pull request #14071 from Microsoft/portLibChanges
Use `Promise` instead of `PromiseLike` in the library
2017-02-14 11:44:33 -08:00
Mohamed Hegazy
b3bb8ae996 Merge pull request #14000 from mattmccutchen/lib-string-replace
lib: Fix documentation of String.replace first parameter.
2017-02-14 11:39:12 -08:00
Mohamed Hegazy
84111fa581 Use Promise instead of PromiseLike in the library 2017-02-14 11:29:14 -08:00
Mohamed Hegazy
6feafc9483 Remove extra overload 2017-02-13 20:49:37 -08:00
Mohamed Hegazy
d7ae0df647 Move interface Promise<T> declaration to es5.d.ts 2017-02-13 12:50:44 -08:00
Matt McCutchen
ecfa0de449 lib: Fix documentation of String.replace first parameter.
The documentation incorrectly suggested that if the first parameter is a
string, it is interpreted as a regular expression.
2017-02-10 16:28:00 -05:00
Ron Buckton
3e427f4860 Merge branch 'master' into asyncGenerators 2017-02-10 09:46:06 -08:00
Mohamed Hegazy
ab60d319b2 Fix #13932: Change the order of overloads and allow union for Object.create 2017-02-07 14:07:55 -08:00
zhengbli
5f1fafce5e routine lib files update 2017-02-02 15:25:05 -08:00
Ron Buckton
5d415cac52 Merge branch 'master' into asyncGenerators 2017-02-02 12:11:44 -08:00
Ron Buckton
b58ef9e932 Merge branch 'master' into genericDefaults 2017-01-30 14:32:00 -08: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
Mohamed Hegazy
f6ee80c675 Merge pull request #13553 from falsandtru/lib.d.ts/symbol
Fix Symbol.valueOf method signature
2017-01-23 15:16:00 -08:00
falsandtru
da05ced2e5 Fix Symbol.valueOf method signature 2017-01-24 07:58:31 +09:00
Ron Buckton
76ba6a7f6a Merge branch 'master' into genericDefaults 2017-01-20 20:37:35 -08:00
falsandtru
21c2c0e786 Fix regressions 2017-01-20 23:05:45 +09:00
Ron Buckton
35ef1f7cbf Merge branch 'master' into asyncGenerators 2017-01-15 15:28:04 -08:00
Ron Buckton
442f5408b6 Updated Promise and PromiseLike to use defaults 2017-01-13 23:48:20 -08:00
Herrington Darkholme
e8af1d285b update declaration file to use intrinsic object type 2017-01-08 18:31:56 +08:00
Mohamed Hegazy
9865a17c48 Merge pull request #11222 from kitsonk/array-slice-typings
Improve Array.prototype.splice typing
2016-12-30 14:28:15 -08:00
Ron Buckton
6a737c88f7 Move async generators to esnext 2016-12-30 14:10:11 -08:00
Ron Buckton
87eeb577a3 Merge branch 'master' into asyncGenerators 2016-12-19 11:51:52 -08:00
Nathan Shively-Sanders
8f2d531907 Merge pull request #12680 from aluanhaddad/12678
Add ReadonlyArray<T>.includes to es2016.array.include.d.ts
2016-12-06 07:50:34 -08:00
Aluan Haddad
ee0894339d Add ReadonlyArray<T>.includes to es2016.array.include.d.ts 2016-12-05 18:25:45 -05:00
Ron Buckton
8af87dce8b Merge branch 'master' into asyncGenerators 2016-11-30 12:47:50 -08:00
Mohamed Hegazy
82e84e272e Make sure all overloads have comments 2016-11-28 17:30:37 -08:00
Mohamed Hegazy
143fc9164f Revert https://github.com/Microsoft/TypeScript/pull/12207 2016-11-28 17:30:26 -08:00
Mohamed Hegazy
72cee3e045 Merge pull request #12434 from Microsoft/Fix12377
Add special handeling for function and array in Object.freeze
2016-11-23 13:26:36 -08:00
Mohamed Hegazy
15d870bdcf Use Function instead of call and construct signatures 2016-11-23 10:56:42 -08:00
Mohamed Hegazy
60395565e6 Handel call and construct signatures 2016-11-23 09:48:25 -08:00
Mohamed Hegazy
72df02cbbd Add function 2016-11-21 23:27:18 -08:00
Mohamed Hegazy
8a334ac00d Add special handeling for function and array in Object.freeze 2016-11-21 23:13:22 -08:00
Mohamed Hegazy
ab8d6c0dab Port lib changes 2016-11-21 22:45:36 -08:00
Anders Hejlsberg
854a20f1fe Update Record<K, T> type 2016-11-21 11:42:21 -08:00
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 4fbbbed321baa58418b9379b418278d31400fe3e.
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