Anders Hejlsberg
dbfef5356c
Accept baseline changes
2019-01-19 10:34:48 -08:00
Anders Hejlsberg
2e94f47602
Add tests
2019-01-19 10:34:38 -08:00
Anders Hejlsberg
980a6817b3
Accept baseline API changes
2019-01-19 10:34:29 -08:00
Anders Hejlsberg
ec30c20ec9
Validate const assertion operand
2019-01-19 10:25:41 -08:00
Anders Hejlsberg
beb02703b8
Support '<const> xxx' and 'xxx as const'
2019-01-18 16:16:45 -08:00
Anders Hejlsberg
ef89d26dc8
Accept new baselines
2019-01-18 09:34:47 -08:00
Anders Hejlsberg
2200d35385
Add tests
2019-01-18 09:34:38 -08:00
Anders Hejlsberg
e5816491ba
Allow rest parameter type to be a readonly array or tuple
2019-01-17 06:06:07 -08:00
Anders Hejlsberg
d24a63d93d
Accept new baselines
2019-01-16 12:45:42 -08:00
Anders Hejlsberg
0eac506fc0
Add .d.ts generation test
2019-01-16 12:45:33 -08:00
Anders Hejlsberg
b611a51381
Accept new baselines
2019-01-16 09:46:39 -08:00
Anders Hejlsberg
2ccc106984
Add more tests
2019-01-16 09:46:28 -08:00
Anders Hejlsberg
2256f9159f
Fix typo
2019-01-16 09:46:02 -08:00
Anders Hejlsberg
a7ca7f4561
Accept new baselines
2019-01-15 14:45:08 -08:00
Anders Hejlsberg
cff7874288
Add tests
2019-01-15 14:44:57 -08:00
Anders Hejlsberg
db840f41c5
Update array/tuple relationship checking
2019-01-15 14:44:38 -08:00
Anders Hejlsberg
7b00a29b1c
Accept new baselines
2019-01-15 10:00:47 -08:00
Anders Hejlsberg
bb8378fddf
Support 'readonly' type modifier on array and tuple types
2019-01-15 09:43:39 -08:00
Anders Hejlsberg
903863a87a
Respect readonly mapped type modifier when mapping arrays and tuples
2019-01-12 08:45:05 -08:00
Anders Hejlsberg
52b82560e8
Merge pull request #29338 from Microsoft/fixConditionalTypeResolution
...
Fix conditional type resolution
2019-01-09 17:18:12 -08:00
Anders Hejlsberg
0c1c97e501
Accept new baselines
2019-01-09 16:16:31 -08:00
Anders Hejlsberg
9fda7014ca
Add regression tests
2019-01-09 16:16:24 -08:00
Anders Hejlsberg
70148a4b55
Improve logic that determines when to resolve conditional types
2019-01-09 16:10:28 -08:00
TypeScript Bot
7174e6a39d
Update user baselines ( #29336 )
2019-01-09 15:50:50 -08:00
Wesley Wigham
d0aff9bdcd
Fix crash ( #29333 )
2019-01-09 14:23:57 -08:00
Sheetal Nandi
387be1fffa
Merge pull request #29316 from Microsoft/randomIdentifier
...
Verify that completion with new identifier location returns isNewIdentifierLocation: true
2019-01-09 13:01:22 -08:00
Daniel Rosenwasser
6bfb935929
Merge pull request #25445 from a-tarasyuk/bug/24542-bad-error-message-for-import-ing-an-export
...
24542 - bad error message for `import *`-ing an `export=`
2019-01-09 11:02:14 -08:00
Klaus Meinhardt
b52a7fc3ea
Exclude JSDoc @extends from 'super()' checks ( #29308 )
...
* Exclude JSDoc @extends from 'super()' checks
This fixes a similar problem as #29244 where JSDoc `@extends`
* fix check 'super can only be referenced in a derived class'
2019-01-09 10:35:22 -08:00
Sheetal Nandi
3f5c0b81a3
Fix existing test
2019-01-09 10:28:53 -08:00
Sheetal Nandi
85e6c2f8ab
Merge pull request #26280 from Microsoft/tsconfig_canonicalpath
...
getScriptInfoOrConfig: Canonicalize tsconfig path before lookup
2019-01-08 16:33:34 -08:00
Sheetal Nandi
4c70bf0292
Merge pull request #29313 from Microsoft/getEditsForRename
...
There is no need to check for file presence when trying to rename imports based on file rename
2019-01-08 16:24:51 -08:00
Sheetal Nandi
46482e14a4
Verify that completion with new identifier location returns isNewIdentifierLocation: true
...
Fixes #24009
Signed-off-by: Sheetal Nandi <shkamat@microsoft.com>
2019-01-08 16:21:46 -08:00
Sheetal Nandi
76c9d9f717
Fix the failing test case
2019-01-08 16:08:43 -08:00
Sheetal Nandi
1870ee4099
Merge branch 'master' into tsconfig_canonicalpath
2019-01-08 16:04:22 -08:00
Sheetal Nandi
08f738fc42
There is no need to check for file presence when trying to rename imports based on file rename
...
Fixes #29031
2019-01-08 15:18:52 -08:00
Nathan Shively-Sanders
ad85e4fd22
Fix gulp baseline-accept ( #29301 )
...
* Fix gulp baseline-accept
I think it was ported incorrectly from jake and then never used.
* Re-add read:false to baselineDelete
2019-01-08 11:20:54 -08:00
Wesley Wigham
19c72c758a
Allow untyped calls on unions of untyped things ( #29265 )
2019-01-08 11:05:55 -08:00
Alexander T
52057ac4f6
Merge branch 'master' of https://github.com/Microsoft/TypeScript into bug/24542-bad-error-message-for-import-ing-an-export
2019-01-08 10:55:11 +02:00
Alexander T
945eed8d9b
PR feedback: change error #2497 message
2019-01-08 10:54:08 +02:00
csigs
4a0bc59f77
LEGO: Merge pull request 29285
...
LEGO: Merge pull request 29285
2019-01-07 08:10:45 -08:00
csigs
ec5224f114
LEGO: check in for master to temporary branch.
2019-01-07 16:10:20 +00:00
Sheetal Nandi
5135b83bf9
Merge pull request #29266 from Microsoft/jsxNamespace
...
Use the sourceFile to determine the jsxNamespace at the location for organizingImports
2019-01-04 14:43:48 -08:00
Sheetal Nandi
93249db692
Use the sourceFile to determine the jsxNamespace at the location for organizingImports
...
Fixes #28827
2019-01-04 14:12:04 -08:00
Wesley Wigham
dcf825e3cd
Add types entry to tslint build to prevent inclusion of unwanted types installed via user tests
2019-01-04 12:59:11 -08:00
Martin Probst
7a2b2cebbf
Do not emit code for @extends tags in JS. ( #29244 )
...
When transpiling JavaScript, TS3.1+ emits `@extends` tags as code. E.g.
/** @extends {SuperClass} */
class SubClass {}
Causes an ES5 emit that references SuperClass:
/**
* @extends {SomeBase}
*/
var SubClass = /** @class */ (function (_super) {
__extends(SubClass, _super);
function SubClass() {
return _super !== null && _super.apply(this, arguments) || this;
}
return SubClass;
}(SomeBase));
Note the literal references to `SomeBase`.
This appears to be an accidental effect of 0f55566cf4. It refactored
`getEffectiveBaseTypeNode` for type checking, but missed an instance
where it is also used for emit logic. This change fixes the problem by
specifically getting the heritage clauses directly off the AST.
Change-Id: I3128a757e5924e2528c61230a90ac13650852542
2019-01-04 08:13:14 -08:00
Sheetal Nandi
b7d7d5f7b3
Merge pull request #29252 from Microsoft/tscWatchIsolatedModules
...
Do not cache semantic diagnostics with --isolated modules
2019-01-03 14:35:19 -08:00
Sheetal Nandi
a633f95da7
Do not cache semantic diagnostics with --isolated modules
...
Fixes #28332
2019-01-03 14:07:25 -08:00
Sheetal Nandi
bce9e2c11c
Merge pull request #29250 from Microsoft/hasContextSensitiveReturnExpression
...
Fix function declaration without body to be checked as context sensitive
2019-01-03 14:06:13 -08:00
Sheetal Nandi
f4a6fb79da
Replace ternary expression
2019-01-03 13:29:43 -08:00
Sheetal Nandi
8dff98dda0
Merge pull request #28992 from Microsoft/tscWatchExportUpdate
...
When removing the errors for the exports from the file, apart from re…moving transitive exports, remove the diagnostics of file that import these exports
2019-01-03 13:26:50 -08:00