Sheetal Nandi
b69622a114
Merge branch 'master' into transitiveReferences
2018-10-16 10:41:17 -07:00
Anders Hejlsberg
5a126e2b27
Merge pull request #27587 from Microsoft/fixUnionOfTupleIndexing
...
Fix indexing and destructuring of unions of tuple types
2018-10-11 12:01:24 -07:00
Sheetal Nandi
88f79de9f4
Merge branch 'master' into transitiveReferences
2018-10-09 14:03:58 -07:00
Anders Hejlsberg
2e5a39a3ce
Error when indexing out of bounds in a tuple or union of tuples
2018-10-08 16:35:03 -07:00
Nathan Shively-Sanders
a4a5b3806e
Report circular JSDoc type references ( #27404 )
...
JSDoc types references can often be to values, which can often be
circular in ways that types tied to declarations cannot. I decided to
create a separate property on SymbolLinks rather than reusing
declaredType, although I'm not sure that's strictly required.
2018-10-08 08:56:29 -07:00
Sheetal Nandi
0e4b10d726
Use resolution options of project reference if the file is from the project reference
2018-10-04 15:04:10 -07:00
Anders Hejlsberg
5510e0755e
Merge branch 'master' into typedBindCallApply
...
# Conflicts:
# tests/baselines/reference/tsxTypeArgumentPartialDefinitionStillErrors.errors.txt
# tests/baselines/reference/wrappedAndRecursiveConstraints4.errors.txt
2018-09-24 16:38:39 -07:00
Andy
c57ff087d6
Add codefix to generate types for untyped module ( #26588 )
2018-09-18 11:47:29 -07:00
Wesley Wigham
f6321bf6d5
Elaborate into arrow return expressions and array types ( #27040 )
...
* Dive into simple arrow functions when elaborating errors
* Dive into array literals as though they were tuples when elaborating, if possible
* Make parameter required
* Remove misleading errors by deeply tuplefying
* Remove lib related spans
2018-09-17 16:45:54 -07:00
Nathan Shively-Sanders
59e4770a51
Fix enum tag circular references ( #27161 )
...
* Fix enum tag circular references
Also, don't try to resolve enum tag types in Typescript.
* Improve comment
2018-09-17 16:06:17 -07:00
Andy
cfd0a62357
When renaming module, ensure rename span is just the last component of the path ( #27151 )
2018-09-17 15:26:41 -07:00
Wesley Wigham
359930a677
Use qutemarks around new instead of ticks around new in diagnostic ( #27106 )
...
* Use qutemarks around new instead of ticks
* Accept baselines
2018-09-14 15:57:24 -07:00
Sheetal Nandi
ebb89ba50c
Merge branch 'master' into commonCompilerOptionsWithBuild
2018-09-14 10:08:34 -07:00
Sheetal Nandi
47f311ac03
Merge pull request #27062 from Microsoft/tsbuildWatchImprovements
...
Multiple improvements to watching with --build option
2018-09-14 09:54:17 -07:00
Sheetal Nandi
0d60348e45
Unify the commandline parsing worker
2018-09-13 10:30:45 -07:00
Anders Hejlsberg
9414fbe30b
Merge branch 'master' into typedBindCallApply
...
# Conflicts:
# src/compiler/diagnosticMessages.json
2018-09-12 13:31:59 -07:00
Wesley Wigham
31374d21bf
Provide suggestions for common can-not-find-name errors ( #27034 )
2018-09-11 14:42:17 -07:00
Sheetal Nandi
c8cdb8146a
Always create dependency graph and build order
2018-09-11 14:27:25 -07:00
Wesley Wigham
1c1379252e
Prefer elaborating on expressions which could be called to produce a correct type by suggesting such ( #27016 )
...
* Prefer elaborating on expressions which could be called to produce a correct type by suggesting such
* Pass relation through elaboration machinery
2018-09-11 14:11:31 -07:00
Daniel Rosenwasser
aa9230f313
Merge pull request #27020 from Kingwl/improve_accidentally_calling_type-assertion_expressions
...
improve Diagnostics for accidentally calling type-assertion expressions
2018-09-11 14:00:31 -07:00
Anders Hejlsberg
b67a261eba
Merge branch 'master' into typedBindCallApply
...
# Conflicts:
# src/compiler/diagnosticMessages.json
2018-09-11 10:48:18 -07:00
王文璐
6b2ea463b2
improve Diagnostics for accidentally calling type-assertion expressions
2018-09-11 14:35:01 +08:00
Wesley Wigham
e9c6d967f6
Add related span pointing at missing arguments ( #27013 )
2018-09-10 16:40:33 -07:00
Anders Hejlsberg
22a384d786
New --strictBindCallApply flag in compiler
2018-09-10 15:12:16 -07:00
Ron Buckton
a255d9a163
Merge branch 'master' into typesVersions
2018-09-07 13:52:12 -07:00
Wesley Wigham
f8b6a8fc8d
Introduce literal freshness for literal enum member types ( #26556 )
...
* Introduce literal freshness for literal enum members, allow enum references in ambient const initializers
* Merge statements
* Add enum literal readonly property test case
* Accept better baselines post-merge
2018-09-07 12:09:07 -07:00
Sheetal Nandi
ddba6d8a70
Merge pull request #26825 from Microsoft/resolveJsonModuleEmit
...
Support json module emit when module emit is commonjs, amd, es2015 or esnext
2018-09-06 09:57:47 -07:00
Ryan Cavanaugh
ed70d4887a
Merge pull request #25633 from Kingwl/strictParameter
...
add use strict and simple parameter check
2018-09-05 17:15:52 -07:00
Ryan Cavanaugh
6465e9dcdd
Merge pull request #26292 from Kingwl/tupleIndexAccessCheck
...
check index access for fixed length tuple
2018-09-05 12:10:46 -07:00
Ron Buckton
e726e4cfec
PR Feedback
2018-09-05 11:23:39 -07:00
Sheetal Nandi
e41dbcdccd
Support json module emit when module emit is commonjs, amd, es2015 or esnext
...
Fixes #25755 and #26020
2018-08-31 14:05:14 -07:00
王文璐
597bb0e764
Merge branch 'master' into strictParameter
2018-08-29 18:28:36 +08:00
Ron Buckton
5f6a2cbf69
Merge branch 'master' into typesVersions
2018-08-28 17:37:23 -07:00
Sheetal Nandi
530a530ac0
Merge pull request #26590 from Microsoft/buildRefactoring
...
Refactor ts build and report watch status when doing --build --watch
2018-08-28 11:43:35 -07:00
Ron Buckton
dc5cd9676b
Switch to paths-like pattern matching
2018-08-28 09:33:03 -07:00
王文璐
f1c5fa5b35
Merge branch 'master' into strictParameter
2018-08-28 17:37:58 +08:00
Ron Buckton
b9afdadf71
Remove jsTypings/semver.ts, add unit tests and logging
2018-08-22 12:38:16 -07:00
Sheetal Nandi
071d790dec
Unify tsbuild option parsing with command line options parsing
2018-08-21 13:41:30 -07:00
Ron Buckton
015babb6f7
Initial support for 'typesVersions'
2018-08-20 16:57:18 -07:00
Anders Hejlsberg
44ada08e02
Guard against infinite type instantiations and constraints
2018-08-20 12:41:31 -07:00
Sheetal Nandi
af71d55a49
Do not include json file unless --resolveJsonModule is specified
...
Fixes #26402
2018-08-14 16:23:13 -07:00
Elizabeth Dinella
421730a68d
Refactoring promises returning functions to use async and await ( #26373 )
2018-08-10 16:11:45 -07:00
王文璐
6432bd9def
check index access for fixed length tuple
2018-08-10 10:49:37 +08:00
Ryan Cavanaugh
3fde17e85c
Merge pull request #26234 from RyanCavanaugh/noVoidTest
...
Disallow expressions of type `void` to be used in truthiness checks
2018-08-07 08:37:42 -07:00
Anders Hejlsberg
cfa29ae2fa
Merge branch 'master' into fixCircularReturnType
...
# Conflicts:
# src/compiler/diagnosticMessages.json
2018-08-06 10:53:20 -07:00
Anders Hejlsberg
6a17f4d162
Merge branch 'master' into fixCircularReturnType
...
# Conflicts:
# tests/baselines/reference/recursiveResolveDeclaredMembers.types
# tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.types
2018-08-06 10:42:35 -07:00
Alexander T
37b9a6bca4
25840 - Add a more meaningful error message to the case when calling a public static method on an instance ( #25922 )
...
* add a more meaningful error message to the case when calling a public static method on an instance
* Fix tests
2018-08-06 10:24:48 -07:00
Ryan Cavanaugh
14d3c69c72
Disallow exprs of type void to be used in truthiness checks
2018-08-06 09:40:22 -07:00
Anders Hejlsberg
e4443bb993
Properly catch and error on circular function return types
2018-08-03 14:03:30 -07:00
Matt McCutchen
d054621477
"Could not find a declaration file for module" error needs to use the
...
unmangled package name where appropriate.
Add a test case for an untyped sub-module of a scoped package with
typings. The other diagnostic message is covered by existing tests; I
guess no one looked at the baselines closely enough.
Fixes #23999 .
2018-08-01 14:13:38 -04:00