Commit Graph

211 Commits

Author SHA1 Message Date
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
Kanchalai Tanglertsampan 168118f12b Modularize ES6 and ES7 library files
Separate ES6 library feature-by-feature into smaller files

Break ES6 library

Remove unused ES6

Rename core to es5

Update building library files in JakeFile

separate symbol into its own file

separate well-known symbol into its own file

remove iterable and symbol component from es6.string.d.ts

remove iterable and symbol components from es6.collection.d.ts

remove symbol components from es6.math.d.ts

remove iterable and symbol components from es6.object.d.ts

remove iterable and symbol components from es6.promise.d.ts

remove iterable and symbol component from es6.reflect.d.ts

remove iterable and symbol components from es6.proxy.d.ts

split regexp into its own file

remove unused file

rename es7 array-include d.ts file

Include new lib files into compilation

Move symbol.iterable to symbol.wellknown

Move functions/methods that use propertyKey back to its original interface

Rename dome.es6 to dom.iterable
Take dependency on dom.generated.d.ts

Rename importcore.d.ts to importes5.d.ts

Add es6.d.ts and es7.d.ts that contain /// references to their associated sub-features files

Update library compilation

Fix harness broken from renaming generated library files

Remove intl.d.ts
Remove preset lib files

Use lib.full.es6.d.ts instead of lib.es6.d.ts

Add intl.d.ts to es5.d.ts

Remove unused RegexpConstructor interface

Separate generator into its own file

Update Jakefile

Remove iterable-iterator dependence

Use lower case for lib filename

Include no-default comment

Remove newline on top of the file
2016-03-28 13:49:46 -07:00
Arnavion bb5fa1622b Revert change to Object.assign 2016-03-23 16:02:38 -07:00
Arnavion d2d02c796b RegExp.compile() actually returns this, per ES6 annex B. 2016-03-22 19:49:43 -07:00
Arnavion 7bb0ce9048 Add nullability annotations to core.d.ts and es6.d.ts 2016-03-22 18:39:12 -07:00
Daniel Rosenwasser e579d17e7e Revert "spelling fixes for src" on generated dom lib.
This reverts commit bb85817d7d.
2016-02-26 12:46:24 -08:00
Josh Soref bb85817d7d spelling fixes for src
Fixes:
* actual
* algorithm
* analyze
* applies
* collapse
* contrast
* definition
* diagnostic
* different
* displayed
* display
* documentation
* finite
* function
* highlight
* initialize
* intentional
* interface
* invariants
* items
* keystroke
* language
* literal
* original
* output
* position
* receive
* recorder
* response
* sequence
* simplicity
* statement

Changing a \ to a /
2016-02-25 20:08:44 +00: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
zhengbli 064de382cf Routine update of lib.d.ts 20160131 2016-01-31 08:13:26 -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