TypeScript/tests/cases/conformance/externalModules
Andrew Branch 2fac535158
Fix type-only imports in interface 'extends' and import=/export= (#36496)
* Handle when files get checked in different orders

* Fix interface extends clause

* Fix import= something type only from a module

* Revert apparently unnecessary addition

* Revert "Revert apparently unnecessary addition"

This reverts commit 7444b0b72e.

* Disallow `import = a.b.c` on anything with type-only imports

* Safety first

* Add test for TS Server single-file open

* Add big comment

* Extract error reporting function for import aliases

* Delete blank line

* Un-export, comment, and colocate some utils

* Combine 3 type-only marking function calls into one

* Add more export default tests
2020-01-29 15:00:17 -08:00
..
es6 fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
esnext fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
typeOnly Fix type-only imports in interface 'extends' and import=/export= (#36496) 2020-01-29 15:00:17 -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
exportAmbientClassNameWithObject.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08: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
exportClassNameWithObjectAMD.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportClassNameWithObjectCommonJS.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportClassNameWithObjectSystem.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportClassNameWithObjectUMD.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08:00
exportDeclaredModule.ts Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00
exportDefaultClassNameWithObject.ts fix export class declare with name object targeting es5 (#17494) 2018-05-24 18:16:38 +08: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
exportNonLocalDeclarations.ts Issue better error for exporting primitive type (#36424) 2020-01-27 08:11:21 -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
invalidSyntaxNamespaceImportWithAMD.ts Add tests 2017-03-29 13:08:21 -07:00
invalidSyntaxNamespaceImportWithCommonjs.ts Add tests 2017-03-29 13:08:21 -07:00
invalidSyntaxNamespaceImportWithSystem.ts Add tests 2017-03-29 13:08:21 -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
topLevelAwait.ts Add top-level await for esnext and system modules (#35813) 2019-12-22 13:24:31 -08:00
topLevelAwaitNonModule.ts Add top-level await for esnext and system modules (#35813) 2019-12-22 13:24:31 -08: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
umd9.ts Add test 2019-04-08 09:46:47 -07:00