Nathan Shively-Sanders
9769718a38
Merge pull request #10123 from Microsoft/allow-js-multiple-declaration-of-constructor-properties
...
Allow JS multiple declarations of ctor properties
2016-08-17 10:58:50 -07:00
Nathan Shively-Sanders
c73efe2fb6
Fix comment
2016-08-17 10:45:35 -07:00
Nathan Shively-Sanders
07a8f31a2d
Correctly merge bindThisPropertyAssignment
...
Also simply it considerably after noticing that it's *only* called for
Javascript files, so there was a lot of dead code for TS cases that
never happened.
2016-08-17 10:43:02 -07:00
Mohamed Hegazy
09bc2e6b41
Merge pull request #10387 from Microsoft/comment_process_type_reference_directives
...
Explain why we lower-case type reference directives
2016-08-17 10:28:29 -07:00
Nathan Shively-Sanders
c218d37191
Merge pull request #9995 from Microsoft/jsdoc-string-literal-types
...
JSDoc string literal types
2016-08-17 10:25:58 -07:00
Nathan Shively-Sanders
96840c3669
Merge branch 'master' into allow-js-multiple-declaration-of-constructor-properties
2016-08-17 09:04:10 -07:00
Andy Hanson
c42f1cb0d0
Explain why we lower-case type reference directives
2016-08-17 06:21:49 -07:00
Andy
ef4fefc197
Merge pull request #10340 from Microsoft/lower_case_types
...
Use lowercase names for type reference directives
2016-08-17 06:04:14 -07:00
Ron Buckton
11c5c4ee8e
Merge pull request #10359 from Microsoft/optimizeMoreMaps
...
Migrate more MapLikes to Maps
2016-08-16 20:11:35 -07:00
Anders Hejlsberg
905957d463
Merge pull request #10357 from Microsoft/implicitConstParameters
...
Implicit const parameters
2016-08-16 15:53:13 -07:00
Nathan Shively-Sanders
01aaff7247
Merge pull request #10009 from Microsoft/null-undefined-allowed-as-index-expressions
...
`Null` and `undefined` are allowed as index expressions
2016-08-16 15:46:42 -07:00
Daniel Rosenwasser
9cc8b2ebb2
Merge pull request #10189 from chancancode/constructor-splat-arguments
...
Emit more efficient/concise "empty" ES6 ctor
2016-08-16 15:39:11 -07:00
Ryan Cavanaugh
a36e15558e
Update error message for conflicting type definitions
...
Fixes #10370
2016-08-16 14:04:02 -07:00
Ron Buckton
c0146556e8
Revert some formatting changes.
2016-08-16 11:18:24 -07:00
Ron Buckton
889e5ac7ae
Clean up/move some Map helper functions.
2016-08-16 11:15:15 -07:00
Anders Hejlsberg
5770157504
Adding more comments
2016-08-16 09:41:33 -07:00
Yui
f7f50073d3
Fix 10625: JSX Not validating when index signature is present ( #10352 )
...
* Check for type of property declaration before using index signature
* Add tests and baselines
* fix linting error
2016-08-16 08:47:21 -07:00
Ron Buckton
1dc495adf8
Migrate additional MapLikes to Maps.
2016-08-15 16:41:32 -07:00
Nathan Shively-Sanders
80c04f8e97
Merge pull request #10358 from Microsoft/classPropertyInference
...
Support this.prop = expr; assignments as declarations for ES6 JS classes — Take 2
2016-08-15 16:20:20 -07:00
Ryan Cavanaugh
11f27e8470
Merge pull request #10062 from YuichiNukiyama/fix9601
...
change error message for unused parameter property
2016-08-15 16:13:32 -07:00
Nathan Shively-Sanders
f3c085e595
Merge branch 'master' into classPropertyInference
2016-08-15 15:52:29 -07:00
Anders Hejlsberg
8f847c5034
Parameters with no assignments implicitly considered const
2016-08-15 15:20:58 -07:00
Ron Buckton
7f0a02ff02
Migrated more MapLikes to Maps
2016-08-15 15:03:55 -07:00
Andy Hanson
8f1960fd34
Rename to Accessor
2016-08-15 11:43:40 -07:00
Andy Hanson
2953c7f0b2
Use an enum in checkClassForDuplicateDeclarations to aid readability
2016-08-15 11:16:36 -07:00
Ron Buckton
75cb595f10
Merge pull request #10327 from Microsoft/simplePerformanceAPI
...
Simplifies performance API
2016-08-15 11:11:20 -07:00
Ron Buckton
4e04b75d4b
Aligned mark names with values used by ts-perf.
2016-08-15 11:07:49 -07:00
Andy Hanson
54735edc72
Use lowercase names for type reference directives
2016-08-15 07:40:25 -07:00
yortus
38353027aa
narrow from 'any' in most situations
...
instanceof and user-defined typeguards narrow from 'any' unless the narrowed-to type is exactly 'Object' or 'Function'. This is a breaking change.
2016-08-14 19:42:18 +08:00
Ron Buckton
c81624435a
Simplifies performance API
2016-08-12 16:34:35 -07:00
Anders Hejlsberg
87393e026e
Merge branch 'master' into optimizeMaps
2016-08-12 13:31:37 -07:00
Anders Hejlsberg
19d89c4e03
Merge pull request #10296 from Microsoft/fixDiscriminantWithPrimtive
...
Fix discriminated unions with primtive types
2016-08-12 13:18:24 -07:00
Andy Hanson
df739fdd50
Allow an @types direcotry to have a package.json which specifies "typings": null to disclude it from automatically included typings.
2016-08-12 08:13:39 -07:00
Anders Hejlsberg
e64675eb85
Faster path for creating union types from filterType
2016-08-12 06:54:51 -07:00
Anders Hejlsberg
f1ea145e05
Address CR comments + more optimizations
2016-08-11 16:06:03 -07:00
Anders Hejlsberg
644d6554fb
Optimize core filter function to only allocate when necessary
2016-08-11 16:04:46 -07:00
Anders Hejlsberg
b336c693ee
Fix typo
2016-08-11 14:38:01 -07:00
Anders Hejlsberg
c22a54fb95
Filter out nullable and primitive types in isDiscriminantProperty
2016-08-11 13:46:06 -07:00
Anders Hejlsberg
a3845a95d5
Optimize getTypeWithFacts
2016-08-11 13:44:51 -07:00
Anders Hejlsberg
24d8d848f1
Optimize filterType to only call getUnionType if necessary
2016-08-11 10:23:27 -07:00
Anders Hejlsberg
e00ce94b94
Merge pull request #10240 from Microsoft/optimizeTypeListIds
...
Optimize format of type list id strings used in maps
2016-08-11 10:11:41 -07:00
Andy
e900952d3d
Merge pull request #10013 from Microsoft/resolve_entity_name
...
Use brand types to clear up confusion about entity name expressions
2016-08-11 09:59:17 -07:00
Nathan Shively-Sanders
688e9bc455
Merge pull request #10234 from Microsoft/correct-this-in-tuple-type-parameter-constraints
...
Correct this in tuple type parameter constraints
2016-08-11 09:44:50 -07:00
Andy Hanson
5b9bd82070
Merge branch 'master' into resolve_entity_name
2016-08-11 09:18:21 -07:00
Anders Hejlsberg
65e1293b2e
Optimize performance of maps
2016-08-10 16:47:06 -07:00
Nathan Shively-Sanders
408780864c
Fix single-quote lint
2016-08-10 14:09:52 -07:00
Anders Hejlsberg
9d4547c5d0
Optimize format of type list id strings used in maps
2016-08-09 16:33:45 -07:00
Nathan Shively-Sanders
80963baf50
Always use thisType when generating tuple id
2016-08-09 15:37:15 -07:00
Nathan Shively-Sanders
6a8f4cb676
Delay tuple type constraint resolution
...
Create a new tuple that stores the this-type.
2016-08-09 14:48:11 -07:00
Anders Hejlsberg
a5ea55ab65
Ignore null, undefined, void when checking for discriminant property
2016-08-09 13:39:00 -07:00