Commit Graph

208 Commits

Author SHA1 Message Date
Nathan Shively-Sanders e7aa7e4958 Merge branch 'master' into this-function-types 2016-02-16 13:57:25 -08:00
Nathan Shively-Sanders a014edf55a Address more comments and remove temp test.
I added the temp test by mistake.
2016-02-16 13:00:21 -08:00
Mohamed Hegazy 727b9a9ceb Merge pull request #6629 from LPGhatguy/master
Update Array.concat type signature to fix #6594
2016-02-04 13:43:28 -08:00
Nathan Shively-Sanders 8032b06f33 Merge branch 'master' into this-function-types 2016-02-02 16:16:46 -08:00
Nathan Shively-Sanders 675e0816d4 Make this-type of bind's return explicit 2016-02-02 14:46:44 -08:00
zhengbli 064de382cf Routine update of lib.d.ts 20160131 2016-01-31 08:13:26 -08:00
Nathan Shively-Sanders 5fe8478159 Add overloads for Function.apply/call/bind
The new overloads use this types to specify the return type of these
functions as well as the type of `thisArg`.
2016-01-29 14:46:01 -08:00
Lucien Greathouse f9eddcebc8 Update Array.concat type signature to fix #6594 2016-01-26 14:25:16 -07:00
Anders Hejlsberg 7561642104 Adding const/readonly to core.d.ts and es6.d.ts 2016-01-24 15:44:13 -08:00
Anders Hejlsberg c826a900bc Merge branch 'master' into readonlyMembers
Conflicts:
	src/compiler/types.ts
2016-01-24 15:21:03 -08:00
falsandtru 5cb13f3909 Remove clear method in WeakSet and WeakMap 2016-01-23 19:08:32 +09:00
Daniel Rosenwasser d5a585fb96 Fix 'includes' method in 'Int8Array'. 2016-01-22 13:43:23 -08:00
YuichiNukiyama 1eda3efbed Add Array.prototype.includes
Add Array.prototype.includes method. method of comments  I've quoted
from
[MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes).
And change Jakefiles.js to build lib.es7.d.ts.
2016-01-22 12:08:28 +00:00
zhengbli 7cf97eb57f update lib from TSJS 20160119 2016-01-19 17:29:51 -08:00
Anders Hejlsberg cac3a32513 Add ReadonlyArray<T> to core.d.ts 2016-01-19 15:45:41 -08:00
Vladimir Matveev dd58228861 add no-default-lib tag to core libraries 2016-01-11 21:34:52 -08:00
Nathan Shively-Sanders 1c553dfd79 Reverse order of Promise.all overloads.
The highest arity overloads should come first -- Typescript chooses the
first overload that matches, which currently means that the *shortest*
tuple type gets chosen, not the longest matching one.
2016-01-11 09:34:49 -08:00
Zhengbo Li b168da9248 Merge pull request #6300 from zhengbli/syncTsjs20151230
Update dom.generated.d.ts with latest version in TSJS repo
2016-01-06 00:41:09 -08:00
Daniel Rosenwasser 7d292c41d6 Use string literals for '[Symbol.toStringTag]' properties. 2016-01-05 11:23:45 -05:00
Daniel Rosenwasser a4dc0f37da Added '[Symbol.toStringTag]' properties to type arrays. 2016-01-05 11:20:44 -05:00
Daniel Rosenwasser 347359c18e Added '[Symbol.toStringTag]' property to 'GeneratorFunction'. 2016-01-05 11:08:52 -05:00
Zhengbo Li 55ae18b824 update dom.generated.d.ts with latest version in TSJS repo 2015-12-30 14:23:47 -08:00
Zhengbo Li da009c5b21 update lib.d.ts from TSJS repo 2015-12-07 22:28:02 -08:00
Nathan Shively-Sanders 3bf39d6df1 Explicitly list tuple overloads for Promise.all.
Previously, the array type would infer a union type for multiple arguments
of differing types. The original overload remains, but I added 9
tuple-based overloads to support up to 10 heterogeneously-typed arguments.
2015-12-07 09:51:00 -08:00
zhengbli 180eba5568 Sync the dom.generated.d.ts files from TSJS repo 2015-11-30 12:40:41 -08:00
Daniel Rosenwasser 83c33551ae Added 'README.md' files to 'lib' and 'src/lib'. 2015-11-02 16:57:57 -08:00
zhengbli 38caf535fc fix i4177 and sync with the TSJS repo 2015-10-26 08:23:50 -04:00
John Vilk f10c7cc154 Change ArrayBuffer.isView declaration to type guard for ArrayBufferView.
Also adds a test that checks that `ArrayBuffer.isView` appropriately narrows its argument to `ArrayBufferView`.

Fixes #5308.
2015-10-18 20:05:30 -04:00
zhengbli de52865243 Remove prototype from NodeFilter static type 2015-10-12 11:35:36 -07:00
zhengbli 9eed58db47 Fix i4684 2015-10-08 11:23:52 -07:00
zhengbli 7175e5d1ae fix issue 4942 2015-10-07 14:32:17 -07:00
zhengbli 1860f4358e Add msapp content back, only remove the internal content 2015-10-01 10:07:11 -07:00
zhengbli de902e2c6e Remove MS specific types from lib.d.ts 2015-10-01 10:03:54 -07:00
zhengbli 660058dcde Fix the bug turning Float32Array type to any 2015-09-30 13:55:29 -07:00
Punya Biswal 55218d64a5 Fix capitalization of minimumintegerDigits 2015-09-18 08:42:42 -04:00
Mohamed Hegazy 98db640a2c Fix documentation 2015-09-17 16:14:46 -07:00
Mohamed Hegazy 6969986bf0 Use intersection types in Object.assing defintion 2015-09-17 16:14:39 -07:00
Graeme Wicksted 03da2ce42b Added toLocaleTimeString variations
See [Mozilla Reference ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString)
2015-09-02 10:19:49 -04:00
Graeme Wicksted c209747c6a Add parameters to toLocaleDateString
Also added missing option in Intl.DateTimeFormatOptions (timeZone).  Original ticket #4294
2015-08-31 10:29:58 -04:00
zhengbli 748231f45d CR feedback 2015-08-26 12:24:40 -07:00
zhengbli c7ea94be75 fix MessageEvent and ProgressEvent constructors 2015-08-26 12:12:40 -07:00
zhengbli 9ed51c6399 Fix inconsistent line endings in lib.d.ts 2015-08-25 12:16:31 -07:00
zhengbli fb403dad91 Move getElementsByClassName from HTMLElement to Element 2015-08-21 16:01:35 -07:00
Daniel Rosenwasser 069d2dc724 Merge pull request #4369 from Microsoft/updateES6DotDDotTsForFinalDraft
Update es6.d.ts for ES6 final draft (Part II)
2015-08-19 22:42:18 -07:00
Daniel Rosenwasser a55d531677 Fixed newlines, switched 'module' keyword to 'namespace'. 2015-08-19 18:22:40 -07:00
Daniel Rosenwasser af05e46b28 Added overloads for typed array constructors to take an 'Iterable<number>'. 2015-08-19 17:11:10 -07:00
Daniel Rosenwasser 0efa8599f0 Merge branch 'master' into updateES6DotDDotTsForFinalDraft 2015-08-19 17:04:26 -07:00
Daniel Rosenwasser b27ab24343 Updated 'Reflect.construct' to add third 'newTarget' argument. 2015-08-19 15:53:31 -07:00
Daniel Rosenwasser f36f510411 Fix documentation for methods of the 'String' interface. 2015-08-19 15:46:56 -07:00
Daniel Rosenwasser 08f37cc2fa Added overload for 'String#split' to take objects with '[Symbol.split]' method. 2015-08-19 15:09:25 -07:00