TypeScript/tests/cases/conformance/externalModules
Mohamed Hegazy d537b79c61 Merge release-2.1 into master (#12157)
* Update LKG

* Update version

* Update LKG

* Skip overloads with too-short function parameters

If the parameter of an overload is a function and the argument is also a
function, skip the overload if the parameter has fewer arguments than
the argument does. That overload cannot possibly apply, and should not
participate in, for example, contextual typing.

Example:

```ts
interface I {
  (a: number): void;
  (b: string, c): void;
}
declare function f(i: I): void;
f((x, y) => {});
```

This code now skips the first overload instead of considering.

This was a longstanding bug but was only uncovered now that more
functions expressions are context sensitive.

* Test skip overloads w/too-short function params

1. Update changed baseline.
2. Add a new test with baseline.

* Minor style improvements

* Ignore optionality when skipping overloads

* Do not use contextual signatures with too few parameters

* isAritySmaller runs later: getNonGenericSignature

* rewrite void-returning statements in constructors that capture result of super call (#11868)

* rewrite void-returning statements in constructors that capture result of super call

* linter

* Update LKG

* Fix emit inferred type which is a generic type-alias both fully and partially fill type parameters

* Add tests and baselines

* Skip trying to use alias if there is target type

* Update baselines

* Add diagnostics to remind adding tsconfig file for certain external project (#11932)

* Add diagnostics for certain external project

* Show tsconfig suggestion

* fix lint error

* Address pr

* fix comment

* Update error message

* Flag for not overwrite js files by default without generating errors (#11980)

* WIP

* Properly naming things

* refactor

* apply the option to all files and check out options

* Fix typo

* Update LKG

* lockLinter

* use local registry to check if typings package exist (#12014) (#12032)

use local registry to check if typings package exist

* Add test for https://github.com/Microsoft/TypeScript/pull/11980 (#12027)

* add test for the fix for overwrite emitting error

* cr feedback

* enable sending telemetry events to tsserver client (#12034) (#12051)

enable sending telemetry events

* Update LKG

* Reuse subtree transform flags for incrementally parsed nodes (#12088)

* Update LKG

* Update version

* Update LKG

* Do not emit "use strict" when targeting es6 or higher or module kind is es2015 and the file is external module

* Add tests and baselines

* [Release 2.1] fix11754 global augmentation (#12133)

* Exclude global augmentation from module resolution logic

* Address PR: check using string literal instead of NodeFlags.globalAugmentation

* Remove comment
2016-11-10 14:28:34 -08:00
..
amdImportAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
amdImportNotAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
asiPreventsParsingAsAmbientExternalModule01.ts Added tests. 2015-06-02 15:42:24 -07:00
asiPreventsParsingAsAmbientExternalModule02.ts Added tests. 2015-06-02 15:42:24 -07:00
circularReference.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
commonJSImportAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
commonJSImportNotAsPrimaryExpression.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
duplicateExportAssignments.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignDottedName.ts Support for 'export default' with expressions 2015-02-25 16:03:03 -08:00
exportAssignImportedIdentifier.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentAndDeclaration.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentCircularModules.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentConstrainedGenericType.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentGenericType.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentMergedInterface.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentMergedModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentTopLevelClodule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentTopLevelEnumdule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentTopLevelFundule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignmentTopLevelIdentifier.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportAssignNonIdentifier.ts Support for 'export default' with expressions 2015-02-25 16:03:03 -08:00
exportAssignTypes.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportDeclaredModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportNonInitializedVariablesAMD.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesCommonJS.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesES6.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesSystem.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonInitializedVariablesUMD.ts Adds tests 2015-05-13 10:59:16 +08:00
exportNonVisibleType.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
globalAugmentationModuleResolution.ts Merge release-2.1 into master (#12157) 2016-11-10 14:28:34 -08:00
importImportOnlyModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
importNonExternalModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
importNonStringLiteral.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
importsImplicitlyReadonly.ts Adding tests 2016-01-25 11:46:23 -08:00
importTsBeforeDTs.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
initializersInDeclarations.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
moduleResolutionWithExtensions.ts [Transforms] Merge master 08/09 (#10263) 2016-08-26 15:51:10 -07:00
moduleScoping.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
multipleExportDefault1.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault2.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault3.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault4.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault5.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
multipleExportDefault6.ts Add tests and baselines 2016-08-09 15:55:26 -07:00
nameDelimitedBySlashes.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
nameWithFileExtension.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
nameWithRelativePaths.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
reexportClassDefinition.ts Test cases that address https://github.com/Microsoft/TypeScript/issues/4288 2015-08-12 15:34:03 -06:00
relativePathMustResolve.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
relativePathToDeclarationFile.ts Fix fallback to classic resolution 2016-02-12 15:40:47 -08:00
topLevelAmbientModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
topLevelFileModule.ts Update node resolution tests 2015-09-15 11:43:28 -07:00
topLevelFileModuleMissing.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
topLevelModuleDeclarationAndFile.ts Update node resolution tests 2015-09-15 11:43:28 -07:00
typesOnlyExternalModuleStillHasInstance.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
umd-augmentation-1.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-augmentation-2.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-augmentation-3.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-augmentation-4.ts Add tests for each variant of UMD augmentation 2016-03-09 14:35:03 -08:00
umd-errors.ts UMD support 2016-03-09 10:08:24 -08:00
umd1.ts UMD support 2016-03-09 10:08:24 -08:00
umd2.ts UMD support 2016-03-09 10:08:24 -08:00
umd3.ts UMD support 2016-03-09 10:08:24 -08:00
umd4.ts UMD support 2016-03-09 10:08:24 -08:00
umd5.ts UMD support 2016-03-09 10:08:24 -08:00
umd6.ts Support UMD when targeted module uses export = 2016-03-09 10:08:24 -08:00
umd7.ts Add test for function export 2016-03-09 16:24:54 -08:00
umd8.ts Allow type and NS references to UMD globals from modules 2016-09-14 15:56:43 -07:00