Anders Hejlsberg
4880e7ea9e
Merge pull request #10396 from Microsoft/fixNestedLoopTypeGuards
...
Fix nested loop type guards
2016-08-17 14:05:02 -07:00
Mohamed Hegazy
ef2d6ab014
Merge pull request #10342 from Microsoft/ambient_shorthand_is_explicit_any
...
Treat ambient shorthand declarations as explicit uses of the `any` type
2016-08-17 13:33:13 -07:00
Anders Hejlsberg
b93cdecdf5
Add regression test
2016-08-17 13:30:13 -07:00
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
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
Nathan Shively-Sanders
000637156a
Merge pull request #10374 from Microsoft/readonly-array-type-argument-assignability
...
Improve ReadonlyArray<T>.concat to match Array<T>
2016-08-17 08:28:38 -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
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
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
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
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
15dae3fd8a
Add tests
2016-08-15 15:21:12 -07:00
Andy Hanson
ccf5bab8ad
Treat ambient shorthand declarations as explicit uses of the any type
2016-08-15 08:51:15 -07:00
Andy Hanson
54735edc72
Use lowercase names for type reference directives
2016-08-15 07:40:25 -07:00
yortus
66047c8b18
add tests
2016-08-14 22:56:36 +08:00
yortus
59c09d90e6
Update instanceof conformance tests
2016-08-14 19:42:18 +08:00
Anders Hejlsberg
5bdde3b284
Merge pull request #10270 from Microsoft/optimizeMaps
...
Optimize performance of maps
2016-08-12 20:41:40 -07:00
Ryan Cavanaugh
ec4952582f
Merge pull request #10211 from RyanCavanaugh/fourslashTestPerf
...
Speed up fourslash tests
2016-08-12 13:33:22 -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
29ae2b2cf1
Add regression tests
2016-08-11 14:38:17 -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
cba2e1aacb
Update API sample
2016-08-10 16:47:35 -07:00
Anders Hejlsberg
6c0bca0ae5
Add regression test
2016-08-09 13:39:12 -07:00
Nathan Shively-Sanders
7e115bbbef
Use correct this in tuple type parameter constraints
...
Instantiate this in tuple types used as type parameter constraints
2016-08-09 12:44:08 -07:00
Anders Hejlsberg
3f1ec7ad4b
Merge pull request #10216 from Microsoft/structurallyIdenticalInstanceof
...
Improve instanceof with structurally identical types
2016-08-08 22:14:50 -07:00
Anders Hejlsberg
9277b3f5ad
Add test
2016-08-08 17:40:53 -07:00
Yui
3f6aa3f3f0
Fix 10076: Fix Tuple Destructing with "this" ( #10208 )
...
* Call checkExpression eventhough there is no appropriate type from destructuring of array
* Add tests and baselines
2016-08-08 14:45:29 -07:00
Ryan Cavanaugh
eac7a48c5f
Fix non-strict-compliant test
2016-08-08 14:39:31 -07:00
Anders Hejlsberg
8ea90ab28b
Merge pull request #10194 from Microsoft/fixInstanceofNarrowing
...
Fix instanceof narrowing
2016-08-08 11:51:34 -07:00
Anders Hejlsberg
f6a850b988
Merge pull request #10188 from Microsoft/discriminantPropertyCheck
...
Discriminant property checks
2016-08-08 11:49:33 -07:00
Anders Hejlsberg
ce5a3f466d
Add more tests
2016-08-08 09:44:43 -07:00
Nathan Shively-Sanders
e25db39ab4
Merge branch 'master' into narrowing-a-type-parameter-intersects-concrete-types
2016-08-08 08:42:28 -07:00
Anders Hejlsberg
67b3fe58fa
Add regression test
2016-08-07 08:53:36 -07:00
Anders Hejlsberg
1375505a1f
Add tests
2016-08-06 09:06:56 -07:00
Yui
ceab31cf0d
Port PR #10016 to Master ( #10100 )
...
* Treat namespaceExportDeclaration as declaration
* Update baselines
* wip - add tests
* Add tests
* Show "export namespace" for quick-info
2016-08-05 10:12:01 -07:00
Andy Hanson
9947ac2ece
Don't allow properties inherited from Object to be automatically included in TSX attributes
2016-08-04 14:13:07 -07:00
Nathan Shively-Sanders
3c32478b8f
Support other (new) literal types in jsdoc
2016-08-04 13:01:17 -07:00
Nathan Shively-Sanders
4c3529680d
Merge branch 'master' into jsdoc-string-literal-types
2016-08-04 09:52:15 -07:00
Nathan Shively-Sanders
e5973b8daa
Add string-literal completion test for jsdoc
2016-08-04 09:46:35 -07:00
Yui
10b36abc8f
[Release-2.0] Fix 9662: Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors ( #9867 )
...
* Change the shape of the shim layer to support getAutomaticTypeDirectives
* Change the key for looking up automatic type-directives
* Update baselines from change look-up name of type-directives
* Add @currentDirectory into the test
* Update baselines
* Fix linting error
* Address PR: fix spelling mistake
* Instead of return path of the type directive names just return type directive names
2016-08-04 07:43:54 -07:00
Nathan Shively-Sanders
72057500b5
Test that declares conflicting method first
2016-08-03 16:10:14 -07:00
Nathan Shively-Sanders
8c01efba04
Allow JS multiple declarations of ctor properties
...
When a property is declared in the constructor and on the prototype of
an ES6 class, the property's symbol is discarded in favour of the
method's symbol. That because the usual use for this pattern is to bind
an instance function: `this.m = this.m.bind(this)`. In this case the
type you want really is the method's type.
2016-08-03 10:33:10 -07:00