mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
Use relative module specifiers in error messages if possible (#27441)
* Use relative module specifiers in error messages if possible * Dont share number
This commit is contained in:
parent
ca840ee683
commit
b85e9e1cc1
@ -1935,7 +1935,7 @@ namespace ts {
|
||||
combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) :
|
||||
symbolFromModule || symbolFromVariable;
|
||||
if (!symbol) {
|
||||
const moduleName = getFullyQualifiedName(moduleSymbol);
|
||||
const moduleName = getFullyQualifiedName(moduleSymbol, node);
|
||||
const declarationName = declarationNameToString(name);
|
||||
const suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);
|
||||
if (suggestion !== undefined) {
|
||||
@ -2101,8 +2101,8 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function getFullyQualifiedName(symbol: Symbol): string {
|
||||
return symbol.parent ? getFullyQualifiedName(symbol.parent) + "." + symbolToString(symbol) : symbolToString(symbol);
|
||||
function getFullyQualifiedName(symbol: Symbol, containingLocation?: Node): string {
|
||||
return symbol.parent ? getFullyQualifiedName(symbol.parent, containingLocation) + "." + symbolToString(symbol) : symbolToString(symbol, containingLocation, /*meaning*/ undefined, SymbolFormatFlags.DoNotIncludeSymbolChain | SymbolFormatFlags.AllowAnyNodeKind);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3078,6 +3078,9 @@ namespace ts {
|
||||
if (flags & SymbolFormatFlags.UseAliasDefinedOutsideCurrentScope) {
|
||||
nodeFlags |= NodeBuilderFlags.UseAliasDefinedOutsideCurrentScope;
|
||||
}
|
||||
if (flags & SymbolFormatFlags.DoNotIncludeSymbolChain) {
|
||||
nodeFlags |= NodeBuilderFlags.DoNotIncludeSymbolChain;
|
||||
}
|
||||
const builder = flags & SymbolFormatFlags.AllowAnyNodeKind ? nodeBuilder.symbolToExpression : nodeBuilder.symbolToEntityName;
|
||||
return writer ? symbolToStringWorker(writer).getText() : usingSingleLineStringWriter(symbolToStringWorker);
|
||||
|
||||
@ -3155,7 +3158,12 @@ namespace ts {
|
||||
const context: NodeBuilderContext = {
|
||||
enclosingDeclaration,
|
||||
flags: flags || NodeBuilderFlags.None,
|
||||
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: noop },
|
||||
// If no full tracker is provided, fake up a dummy one with a basic limited-functionality moduleResolverHost
|
||||
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: noop, moduleResolverHost: flags! & NodeBuilderFlags.DoNotIncludeSymbolChain ? {
|
||||
getCommonSourceDirectory: (host as Program).getCommonSourceDirectory ? () => (host as Program).getCommonSourceDirectory() : () => "",
|
||||
getSourceFiles: () => host.getSourceFiles(),
|
||||
getCurrentDirectory: host.getCurrentDirectory && (() => host.getCurrentDirectory!())
|
||||
} : undefined },
|
||||
encounteredError: false,
|
||||
visitedSymbols: undefined,
|
||||
inferTypeParameters: undefined,
|
||||
@ -3885,7 +3893,7 @@ namespace ts {
|
||||
// Try to get qualified name if the symbol is not a type parameter and there is an enclosing declaration.
|
||||
let chain: Symbol[];
|
||||
const isTypeParameter = symbol.flags & SymbolFlags.TypeParameter;
|
||||
if (!isTypeParameter && (context.enclosingDeclaration || context.flags & NodeBuilderFlags.UseFullyQualifiedType)) {
|
||||
if (!isTypeParameter && (context.enclosingDeclaration || context.flags & NodeBuilderFlags.UseFullyQualifiedType) && !(context.flags & NodeBuilderFlags.DoNotIncludeSymbolChain)) {
|
||||
chain = Debug.assertDefined(getSymbolChain(symbol, meaning, /*endOfChain*/ true));
|
||||
Debug.assert(chain && chain.length > 0);
|
||||
}
|
||||
@ -4140,6 +4148,9 @@ namespace ts {
|
||||
function createExpressionFromSymbolChain(chain: Symbol[], index: number): Expression {
|
||||
const typeParameterNodes = lookupTypeParameterNodes(chain, index, context);
|
||||
const symbol = chain[index];
|
||||
if (some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {
|
||||
return createLiteral(getSpecifierForModuleSymbol(symbol, context));
|
||||
}
|
||||
|
||||
if (index === 0) {
|
||||
context.flags |= NodeBuilderFlags.InInitialEntityName;
|
||||
|
||||
@ -260,6 +260,9 @@ namespace ts.moduleSpecifiers {
|
||||
}
|
||||
|
||||
function tryGetModuleNameAsNodeModule(moduleFileName: string, { getCanonicalFileName, sourceDirectory }: Info, host: ModuleSpecifierResolutionHost, options: CompilerOptions): string | undefined {
|
||||
if (!host.fileExists || !host.readFile) {
|
||||
return undefined;
|
||||
}
|
||||
const parts: NodeModulePathParts = getNodeModulePathParts(moduleFileName)!;
|
||||
if (!parts) {
|
||||
return undefined;
|
||||
@ -267,8 +270,8 @@ namespace ts.moduleSpecifiers {
|
||||
|
||||
const packageRootPath = moduleFileName.substring(0, parts.packageRootIndex);
|
||||
const packageJsonPath = combinePaths(packageRootPath, "package.json");
|
||||
const packageJsonContent = host.fileExists!(packageJsonPath)
|
||||
? JSON.parse(host.readFile!(packageJsonPath)!)
|
||||
const packageJsonContent = host.fileExists(packageJsonPath)
|
||||
? JSON.parse(host.readFile(packageJsonPath)!)
|
||||
: undefined;
|
||||
const versionPaths = packageJsonContent && packageJsonContent.typesVersions
|
||||
? getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions)
|
||||
@ -325,11 +328,12 @@ namespace ts.moduleSpecifiers {
|
||||
}
|
||||
|
||||
function tryGetAnyFileFromPath(host: ModuleSpecifierResolutionHost, path: string) {
|
||||
if (!host.fileExists) return;
|
||||
// We check all js, `node` and `json` extensions in addition to TS, since node module resolution would also choose those over the directory
|
||||
const extensions = getSupportedExtensions({ allowJs: true }, [{ extension: "node", isMixedContent: false }, { extension: "json", isMixedContent: false, scriptKind: ScriptKind.JSON }]);
|
||||
for (const e of extensions) {
|
||||
const fullPath = path + e;
|
||||
if (host.fileExists!(fullPath)) { // TODO: GH#18217
|
||||
if (host.fileExists(fullPath)) {
|
||||
return fullPath;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2908,7 +2908,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
export interface TypeCheckerHost {
|
||||
export interface TypeCheckerHost extends ModuleSpecifierResolutionHost {
|
||||
getCompilerOptions(): CompilerOptions;
|
||||
|
||||
getSourceFiles(): ReadonlyArray<SourceFile>;
|
||||
@ -3183,6 +3183,8 @@ namespace ts {
|
||||
InTypeAlias = 1 << 23, // Writing type in type alias declaration
|
||||
InInitialEntityName = 1 << 24, // Set when writing the LHS of an entity name or entity name expression
|
||||
InReverseMappedType = 1 << 25,
|
||||
|
||||
/* @internal */ DoNotIncludeSymbolChain = 1 << 26, // Skip looking up and printing an accessible symbol chain
|
||||
}
|
||||
|
||||
// Ensure the shared flags between this and `NodeBuilderFlags` stay in alignment
|
||||
@ -3245,6 +3247,9 @@ namespace ts {
|
||||
|
||||
// Prefer aliases which are not directly visible
|
||||
UseAliasDefinedOutsideCurrentScope = 0x00000008,
|
||||
|
||||
// Skip building an accessible symbol chain
|
||||
/* @internal */ DoNotIncludeSymbolChain = 0x00000010,
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
@ -5379,7 +5384,7 @@ namespace ts {
|
||||
reportInaccessibleThisError?(): void;
|
||||
reportPrivateInBaseOfClassExpression?(propertyName: string): void;
|
||||
reportInaccessibleUniqueSymbolError?(): void;
|
||||
moduleResolverHost?: EmitHost;
|
||||
moduleResolverHost?: ModuleSpecifierResolutionHost & { getSourceFiles(): ReadonlyArray<SourceFile>, getCommonSourceDirectory(): string };
|
||||
trackReferencedAmbientModule?(decl: ModuleDeclaration, symbol: Symbol): void;
|
||||
trackExternalModuleSymbolOfImportTypeNode?(symbol: Symbol): void;
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ declare namespace demoNS {
|
||||
>f : Symbol(f, Decl(demo.d.ts, 0, 26))
|
||||
}
|
||||
declare module 'demoModule' {
|
||||
>'demoModule' : Symbol('demoModule', Decl(demo.d.ts, 2, 1))
|
||||
>'demoModule' : Symbol("demoModule", Decl(demo.d.ts, 2, 1))
|
||||
|
||||
import alias = demoNS;
|
||||
>alias : Symbol(alias, Decl(demo.d.ts, 3, 29))
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
tests/cases/compiler/a.ts(1,10): error TS2305: Module '"tests/cases/compiler/b"' has no exported member 'default'.
|
||||
tests/cases/compiler/a.ts(1,10): error TS2305: Module '"./b"' has no exported member 'default'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/b.d.ts (0 errors) ====
|
||||
@ -9,6 +9,6 @@ tests/cases/compiler/a.ts(1,10): error TS2305: Module '"tests/cases/compiler/b"'
|
||||
==== tests/cases/compiler/a.ts (1 errors) ====
|
||||
import { default as Foo } from "./b";
|
||||
~~~~~~~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/b"' has no exported member 'default'.
|
||||
!!! error TS2305: Module '"./b"' has no exported member 'default'.
|
||||
Foo.bar();
|
||||
Foo.foo();
|
||||
@ -160,7 +160,7 @@ var q = M1.fn();
|
||||
// Ambient external module in the global module
|
||||
// Ambient external module with a string literal name that is a top level external module name
|
||||
declare module 'external1' {
|
||||
>'external1' : Symbol('external1', Decl(ambientDeclarations.ts, 67, 16))
|
||||
>'external1' : Symbol("external1", Decl(ambientDeclarations.ts, 67, 16))
|
||||
|
||||
var q;
|
||||
>q : Symbol(q, Decl(ambientDeclarations.ts, 72, 7))
|
||||
|
||||
@ -20,7 +20,7 @@ var n: number;
|
||||
=== tests/cases/conformance/ambient/decls.ts ===
|
||||
// Ambient external module with export assignment
|
||||
declare module 'equ' {
|
||||
>'equ' : Symbol('equ', Decl(decls.ts, 0, 0))
|
||||
>'equ' : Symbol("equ", Decl(decls.ts, 0, 0))
|
||||
|
||||
var x;
|
||||
>x : Symbol(x, Decl(decls.ts, 2, 7))
|
||||
@ -30,7 +30,7 @@ declare module 'equ' {
|
||||
}
|
||||
|
||||
declare module 'equ2' {
|
||||
>'equ2' : Symbol('equ2', Decl(decls.ts, 4, 1))
|
||||
>'equ2' : Symbol("equ2", Decl(decls.ts, 4, 1))
|
||||
|
||||
var x: number;
|
||||
>x : Symbol(x, Decl(decls.ts, 7, 7))
|
||||
|
||||
@ -90,16 +90,16 @@ module M2 {
|
||||
>M2 : Symbol(M2, Decl(ambientErrors.ts, 42, 1))
|
||||
|
||||
declare module 'nope' { }
|
||||
>'nope' : Symbol('nope', Decl(ambientErrors.ts, 45, 11))
|
||||
>'nope' : Symbol("nope", Decl(ambientErrors.ts, 45, 11))
|
||||
}
|
||||
|
||||
// Ambient external module with a string literal name that isn't a top level external module name
|
||||
declare module '../foo' { }
|
||||
>'../foo' : Symbol('../foo', Decl(ambientErrors.ts, 47, 1))
|
||||
>'../foo' : Symbol("../foo", Decl(ambientErrors.ts, 47, 1))
|
||||
|
||||
// Ambient external module with export assignment and other exported members
|
||||
declare module 'bar' {
|
||||
>'bar' : Symbol('bar', Decl(ambientErrors.ts, 50, 27))
|
||||
>'bar' : Symbol("bar", Decl(ambientErrors.ts, 50, 27))
|
||||
|
||||
var n;
|
||||
>n : Symbol(n, Decl(ambientErrors.ts, 54, 7))
|
||||
|
||||
@ -9,7 +9,7 @@ var c = new A();
|
||||
|
||||
=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts ===
|
||||
declare module 'M' {
|
||||
>'M' : Symbol('M', Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 0))
|
||||
>'M' : Symbol("M", Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 0))
|
||||
|
||||
module C {
|
||||
>C : Symbol(C, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 3, 5))
|
||||
|
||||
@ -9,7 +9,7 @@ var c = new A();
|
||||
|
||||
=== tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_0.ts ===
|
||||
declare module 'M' {
|
||||
>'M' : Symbol('M', Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 0))
|
||||
>'M' : Symbol("M", Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 0))
|
||||
|
||||
module C {
|
||||
>C : Symbol(C, Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 3, 5))
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
=== tests/cases/compiler/file1.ts ===
|
||||
function foo() {}
|
||||
>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.ts", Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8))
|
||||
|
||||
namespace foo {
|
||||
>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.ts", Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8))
|
||||
|
||||
export var v = 1;
|
||||
>v : Symbol(v, Decl(file1.ts, 2, 14))
|
||||
|
||||
@ -3,10 +3,10 @@ declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
function foo(): void;
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 25), Decl(file2.ts, 2, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.d.ts", Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 25), Decl(file2.ts, 2, 8))
|
||||
|
||||
namespace foo {
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 25), Decl(file2.ts, 2, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.d.ts", Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 25), Decl(file2.ts, 2, 8))
|
||||
|
||||
export var v: number;
|
||||
>v : Symbol(v, Decl(file1.d.ts, 3, 18))
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
=== tests/cases/compiler/file1.ts ===
|
||||
class foo {}
|
||||
>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.ts", Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8))
|
||||
|
||||
namespace foo {
|
||||
>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.ts", Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8))
|
||||
|
||||
export var v = 1;
|
||||
>v : Symbol(v, Decl(file1.ts, 2, 14))
|
||||
|
||||
@ -3,10 +3,10 @@ declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
class foo {}
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 2, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.d.ts", Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 2, 8))
|
||||
|
||||
namespace foo {
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 2, 8))
|
||||
>foo : Symbol("tests/cases/compiler/file1.d.ts", Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 2, 8))
|
||||
|
||||
export var v: number;
|
||||
>v : Symbol(v, Decl(file1.d.ts, 3, 18))
|
||||
|
||||
@ -16,12 +16,12 @@ declare module "express" {
|
||||
>"express" : Symbol("express", Decl(express.d.ts, 4, 1))
|
||||
|
||||
function e(): e.Express;
|
||||
>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29))
|
||||
>e : Symbol("tests/cases/compiler/express.d.ts", Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29))
|
||||
>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28))
|
||||
>Express : Symbol(Express, Decl(express.d.ts, 52, 9))
|
||||
|
||||
namespace e {
|
||||
>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29))
|
||||
>e : Symbol("tests/cases/compiler/express.d.ts", Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29))
|
||||
|
||||
interface IRoute {
|
||||
>IRoute : Symbol(IRoute, Decl(express.d.ts, 8, 17))
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
=== tests/cases/compiler/file1.ts ===
|
||||
class foo {}
|
||||
>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10))
|
||||
>foo : Symbol("tests/cases/compiler/file1.ts", Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10))
|
||||
|
||||
namespace foo {
|
||||
>foo : Symbol(foo, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10))
|
||||
>foo : Symbol("tests/cases/compiler/file1.ts", Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10))
|
||||
|
||||
export class A {}
|
||||
>A : Symbol(A, Decl(file1.ts, 1, 15), Decl(file2.ts, 4, 26))
|
||||
|
||||
@ -3,10 +3,10 @@ declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
class foo {}
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 1, 28))
|
||||
>foo : Symbol("tests/cases/compiler/file1.d.ts", Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 1, 28))
|
||||
|
||||
namespace foo {
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 1, 28))
|
||||
>foo : Symbol("tests/cases/compiler/file1.d.ts", Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 1, 28))
|
||||
|
||||
class A {}
|
||||
>A : Symbol(A, Decl(file1.d.ts, 2, 19), Decl(file2.ts, 4, 24))
|
||||
|
||||
@ -10,7 +10,7 @@ declare module "http" {
|
||||
}
|
||||
|
||||
declare module 'intern/dojo/node!http' {
|
||||
>'intern/dojo/node!http' : Symbol('intern/dojo/node!http', Decl(a.d.ts, 1, 1))
|
||||
>'intern/dojo/node!http' : Symbol("intern/dojo/node!http", Decl(a.d.ts, 1, 1))
|
||||
|
||||
import http = require('http');
|
||||
>http : Symbol(http, Decl(a.d.ts, 3, 40))
|
||||
|
||||
@ -4,7 +4,7 @@ class List<T> { }
|
||||
>T : Symbol(T, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 0, 11))
|
||||
|
||||
declare module 'mod1' {
|
||||
>'mod1' : Symbol('mod1', Decl(declFileImportedTypeUseInTypeArgPosition.ts, 0, 17))
|
||||
>'mod1' : Symbol("mod1", Decl(declFileImportedTypeUseInTypeArgPosition.ts, 0, 17))
|
||||
|
||||
class Foo {
|
||||
>Foo : Symbol(Foo, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 1, 23))
|
||||
@ -12,7 +12,7 @@ declare module 'mod1' {
|
||||
}
|
||||
|
||||
declare module 'moo' {
|
||||
>'moo' : Symbol('moo', Decl(declFileImportedTypeUseInTypeArgPosition.ts, 4, 1))
|
||||
>'moo' : Symbol("moo", Decl(declFileImportedTypeUseInTypeArgPosition.ts, 4, 1))
|
||||
|
||||
import x = require('mod1');
|
||||
>x : Symbol(x, Decl(declFileImportedTypeUseInTypeArgPosition.ts, 6, 22))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/types/component.d.ts ===
|
||||
declare module '@namespace/component' {
|
||||
>'@namespace/component' : Symbol('@namespace/component', Decl(component.d.ts, 0, 0))
|
||||
>'@namespace/component' : Symbol("@namespace/component", Decl(component.d.ts, 0, 0))
|
||||
|
||||
export class Foo {}
|
||||
>Foo : Symbol(Foo, Decl(component.d.ts, 0, 39))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declaredExternalModule.ts ===
|
||||
declare module 'connect' {
|
||||
>'connect' : Symbol('connect', Decl(declaredExternalModule.ts, 0, 0))
|
||||
>'connect' : Symbol("connect", Decl(declaredExternalModule.ts, 0, 0))
|
||||
|
||||
interface connectModule {
|
||||
>connectModule : Symbol(connectModule, Decl(declaredExternalModule.ts, 0, 26))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts ===
|
||||
declare module 'connect' {
|
||||
>'connect' : Symbol('connect', Decl(declaredExternalModuleWithExportAssignment.ts, 0, 0))
|
||||
>'connect' : Symbol("connect", Decl(declaredExternalModuleWithExportAssignment.ts, 0, 0))
|
||||
|
||||
interface connectModule {
|
||||
>connectModule : Symbol(connectModule, Decl(declaredExternalModuleWithExportAssignment.ts, 0, 26))
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(3,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(5,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,30): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(9,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(3,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(5,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(7,30): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(9,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0.ts (0 errors) ====
|
||||
@ -15,24 +15,24 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_1.ts(11,27)
|
||||
var x1: number = defaultBinding1;
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
var x1: number = defaultBinding2;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
var x1: number = defaultBinding3;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'a'.
|
||||
var x1: number = defaultBinding4;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'x'.
|
||||
var x1: number = defaultBinding5;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1_0"' has no exported member 'm'.
|
||||
var x1: number = defaultBinding6;
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(3,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(5,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(7,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(7,30): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(9,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(11,27): error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(3,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(5,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(7,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(7,30): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(9,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(11,27): error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0.ts (0 errors) ====
|
||||
@ -15,24 +15,24 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(1
|
||||
var x: number = defaultBinding1;
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding2;
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding3;
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding4;
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
var x: number = defaultBinding5;
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'.
|
||||
!!! error TS2305: Module '"./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'.
|
||||
var x: number = defaultBinding6;
|
||||
|
||||
@ -1,20 +1,20 @@
|
||||
tests/cases/compiler/client.ts(1,1): error TS1191: An import declaration cannot have modifiers.
|
||||
tests/cases/compiler/client.ts(2,12): error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
tests/cases/compiler/client.ts(3,1): error TS1191: An import declaration cannot have modifiers.
|
||||
tests/cases/compiler/client.ts(3,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(3,34): error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(4,12): error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
tests/cases/compiler/client.ts(5,1): error TS1191: An import declaration cannot have modifiers.
|
||||
tests/cases/compiler/client.ts(5,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(5,34): error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(6,12): error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
tests/cases/compiler/client.ts(7,1): error TS1191: An import declaration cannot have modifiers.
|
||||
tests/cases/compiler/client.ts(7,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(7,37): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(7,34): error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(7,37): error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(8,12): error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
tests/cases/compiler/client.ts(9,1): error TS1191: An import declaration cannot have modifiers.
|
||||
tests/cases/compiler/client.ts(9,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(9,34): error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(10,12): error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
tests/cases/compiler/client.ts(11,1): error TS1191: An import declaration cannot have modifiers.
|
||||
tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
||||
tests/cases/compiler/client.ts(11,34): error TS2305: Module '"./server"' has no exported member 'm'.
|
||||
tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@ tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported v
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding2;
|
||||
~~
|
||||
!!! error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
@ -41,7 +41,7 @@ tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported v
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding3;
|
||||
~~
|
||||
!!! error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
@ -49,9 +49,9 @@ tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported v
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding4;
|
||||
~~
|
||||
!!! error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
@ -59,7 +59,7 @@ tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported v
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
export var x1: number = defaultBinding5;
|
||||
~~
|
||||
!!! error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
@ -67,7 +67,7 @@ tests/cases/compiler/client.ts(12,12): error TS2323: Cannot redeclare exported v
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'm'.
|
||||
export var x1: number = defaultBinding6;
|
||||
~~
|
||||
!!! error TS2323: Cannot redeclare exported variable 'x1'.
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
tests/cases/compiler/client.ts(3,27): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(5,27): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(7,27): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(7,30): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(9,27): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(11,27): error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
||||
tests/cases/compiler/client.ts(3,27): error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(5,27): error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(7,27): error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(7,30): error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
tests/cases/compiler/client.ts(9,27): error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
tests/cases/compiler/client.ts(11,27): error TS2305: Module '"./server"' has no exported member 'm'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/server.ts (0 errors) ====
|
||||
@ -15,23 +15,23 @@ tests/cases/compiler/client.ts(11,27): error TS2305: Module '"tests/cases/compil
|
||||
export var x1 = new defaultBinding1();
|
||||
import defaultBinding2, { a } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
export var x2 = new defaultBinding2();
|
||||
import defaultBinding3, { a as b } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
export var x3 = new defaultBinding3();
|
||||
import defaultBinding4, { x, a as y } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'a'.
|
||||
export var x4 = new defaultBinding4();
|
||||
import defaultBinding5, { x as z, } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'x'.
|
||||
export var x5 = new defaultBinding5();
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
||||
!!! error TS2305: Module '"./server"' has no exported member 'm'.
|
||||
export var x6 = new defaultBinding6();
|
||||
@ -1,5 +1,5 @@
|
||||
tests/cases/compiler/es6ImportNamedImport_1.ts(1,10): error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoExportMember_0"' has no exported member 'a1'.
|
||||
tests/cases/compiler/es6ImportNamedImport_1.ts(2,10): error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoExportMember_0"' has no exported member 'x1'.
|
||||
tests/cases/compiler/es6ImportNamedImport_1.ts(1,10): error TS2305: Module '"./es6ImportNamedImportNoExportMember_0"' has no exported member 'a1'.
|
||||
tests/cases/compiler/es6ImportNamedImport_1.ts(2,10): error TS2305: Module '"./es6ImportNamedImportNoExportMember_0"' has no exported member 'x1'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportNoExportMember_0.ts (0 errors) ====
|
||||
@ -9,7 +9,7 @@ tests/cases/compiler/es6ImportNamedImport_1.ts(2,10): error TS2305: Module '"tes
|
||||
==== tests/cases/compiler/es6ImportNamedImport_1.ts (2 errors) ====
|
||||
import { a1 } from "./es6ImportNamedImportNoExportMember_0";
|
||||
~~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoExportMember_0"' has no exported member 'a1'.
|
||||
!!! error TS2305: Module '"./es6ImportNamedImportNoExportMember_0"' has no exported member 'a1'.
|
||||
import { x1 as x } from "./es6ImportNamedImportNoExportMember_0";
|
||||
~~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoExportMember_0"' has no exported member 'x1'.
|
||||
!!! error TS2305: Module '"./es6ImportNamedImportNoExportMember_0"' has no exported member 'x1'.
|
||||
@ -1,5 +1,5 @@
|
||||
tests/cases/compiler/es6ImportNamedImportNoNamedExports_1.ts(1,10): error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportNamedImportNoNamedExports_1.ts(2,10): error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportNamedImportNoNamedExports_1.ts(1,10): error TS2305: Module '"./es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
tests/cases/compiler/es6ImportNamedImportNoNamedExports_1.ts(2,10): error TS2305: Module '"./es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/es6ImportNamedImportNoNamedExports_0.ts (0 errors) ====
|
||||
@ -9,7 +9,7 @@ tests/cases/compiler/es6ImportNamedImportNoNamedExports_1.ts(2,10): error TS2305
|
||||
==== tests/cases/compiler/es6ImportNamedImportNoNamedExports_1.ts (2 errors) ====
|
||||
import { a } from "./es6ImportNamedImportNoNamedExports_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
import { a as x } from "./es6ImportNamedImportNoNamedExports_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
!!! error TS2305: Module '"./es6ImportNamedImportNoNamedExports_0"' has no exported member 'a'.
|
||||
@ -3,7 +3,7 @@ export = foo;
|
||||
>foo : Symbol(foo, Decl(index.d.ts, 0, 13))
|
||||
|
||||
declare namespace foo {
|
||||
>foo : Symbol(foo, Decl(index.d.ts, 0, 13), Decl(a.ts, 0, 27), Decl(b.ts, 0, 27))
|
||||
>foo : Symbol("/node_modules/foo/index.d.ts", Decl(index.d.ts, 0, 13), Decl(a.ts, 0, 27), Decl(b.ts, 0, 27))
|
||||
|
||||
export type T = number;
|
||||
>T : Symbol(T, Decl(index.d.ts, 1, 23))
|
||||
|
||||
@ -5,7 +5,7 @@ declare var io: any;
|
||||
>io : Symbol(io, Decl(exportDefaultVariable.ts, 2, 11))
|
||||
|
||||
declare module 'module' {
|
||||
>'module' : Symbol('module', Decl(exportDefaultVariable.ts, 2, 20))
|
||||
>'module' : Symbol("module", Decl(exportDefaultVariable.ts, 2, 20))
|
||||
|
||||
export default io;
|
||||
>io : Symbol(io, Decl(exportDefaultVariable.ts, 2, 11))
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
=== tests/cases/compiler/exportEqualsOfModule.ts ===
|
||||
declare module '~popsicle/dist/request' {
|
||||
>'~popsicle/dist/request' : Symbol('~popsicle/dist/request', Decl(exportEqualsOfModule.ts, 0, 0))
|
||||
>'~popsicle/dist/request' : Symbol("~popsicle/dist/request", Decl(exportEqualsOfModule.ts, 0, 0))
|
||||
|
||||
export class Request {}
|
||||
>Request : Symbol(Request, Decl(exportEqualsOfModule.ts, 0, 41))
|
||||
}
|
||||
|
||||
declare module '~popsicle/dist/common' {
|
||||
>'~popsicle/dist/common' : Symbol('~popsicle/dist/common', Decl(exportEqualsOfModule.ts, 2, 1))
|
||||
>'~popsicle/dist/common' : Symbol("~popsicle/dist/common", Decl(exportEqualsOfModule.ts, 2, 1))
|
||||
|
||||
import { Request } from '~popsicle/dist/request';
|
||||
>Request : Symbol(Request, Decl(exportEqualsOfModule.ts, 5, 12))
|
||||
@ -17,7 +17,7 @@ declare module '~popsicle/dist/common' {
|
||||
}
|
||||
|
||||
declare module 'popsicle' {
|
||||
>'popsicle' : Symbol('popsicle', Decl(exportEqualsOfModule.ts, 7, 1))
|
||||
>'popsicle' : Symbol("popsicle", Decl(exportEqualsOfModule.ts, 7, 1))
|
||||
|
||||
import alias = require('~popsicle/dist/common');
|
||||
>alias : Symbol(alias, Decl(exportEqualsOfModule.ts, 9, 27))
|
||||
@ -27,7 +27,7 @@ declare module 'popsicle' {
|
||||
}
|
||||
|
||||
declare module 'popsicle-proxy-agent' {
|
||||
>'popsicle-proxy-agent' : Symbol('popsicle-proxy-agent', Decl(exportEqualsOfModule.ts, 12, 1))
|
||||
>'popsicle-proxy-agent' : Symbol("popsicle-proxy-agent", Decl(exportEqualsOfModule.ts, 12, 1))
|
||||
|
||||
import { Request } from 'popsicle';
|
||||
>Request : Symbol(Request, Decl(exportEqualsOfModule.ts, 15, 12))
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/es6/modules/b.ts(1,10): error TS2724: Module '"tests/cases/conformance/es6/modules/a"' has no exported member 'assertNevar'. Did you mean 'assertNever'?
|
||||
tests/cases/conformance/es6/modules/b.ts(1,10): error TS2724: Module '"./a"' has no exported member 'assertNevar'. Did you mean 'assertNever'?
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/modules/a.ts (0 errors) ====
|
||||
@ -9,6 +9,6 @@ tests/cases/conformance/es6/modules/b.ts(1,10): error TS2724: Module '"tests/cas
|
||||
==== tests/cases/conformance/es6/modules/b.ts (1 errors) ====
|
||||
import { assertNevar } from "./a";
|
||||
~~~~~~~~~~~
|
||||
!!! error TS2724: Module '"tests/cases/conformance/es6/modules/a"' has no exported member 'assertNevar'. Did you mean 'assertNever'?
|
||||
!!! error TS2724: Module '"./a"' has no exported member 'assertNevar'. Did you mean 'assertNever'?
|
||||
!!! related TS2728 tests/cases/conformance/es6/modules/a.ts:1:17: 'assertNever' is declared here.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/externalModuleReferenceDoubleUnderscore1.ts ===
|
||||
declare module 'timezonecomplete' {
|
||||
>'timezonecomplete' : Symbol('timezonecomplete', Decl(externalModuleReferenceDoubleUnderscore1.ts, 0, 0))
|
||||
>'timezonecomplete' : Symbol("timezonecomplete", Decl(externalModuleReferenceDoubleUnderscore1.ts, 0, 0))
|
||||
|
||||
import basics = require("__timezonecomplete/basics");
|
||||
>basics : Symbol(basics, Decl(externalModuleReferenceDoubleUnderscore1.ts, 0, 35))
|
||||
@ -12,7 +12,7 @@ declare module 'timezonecomplete' {
|
||||
}
|
||||
|
||||
declare module '__timezonecomplete/basics' {
|
||||
>'__timezonecomplete/basics' : Symbol('__timezonecomplete/basics', Decl(externalModuleReferenceDoubleUnderscore1.ts, 3, 1))
|
||||
>'__timezonecomplete/basics' : Symbol("__timezonecomplete/basics", Decl(externalModuleReferenceDoubleUnderscore1.ts, 3, 1))
|
||||
|
||||
export enum TimeUnit {
|
||||
>TimeUnit : Symbol(TimeUnit, Decl(externalModuleReferenceDoubleUnderscore1.ts, 5, 44))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/passport.d.ts ===
|
||||
declare module 'passport' {
|
||||
>'passport' : Symbol('passport', Decl(passport.d.ts, 0, 0))
|
||||
>'passport' : Symbol("passport", Decl(passport.d.ts, 0, 0))
|
||||
|
||||
namespace passport {
|
||||
>passport : Symbol(passport, Decl(passport.d.ts, 0, 27), Decl(passport.d.ts, 11, 9))
|
||||
|
||||
@ -6,12 +6,12 @@ import moment = require("moment-timezone");
|
||||
|
||||
=== tests/cases/compiler/node_modules/moment/index.d.ts ===
|
||||
declare function moment(): moment.Moment;
|
||||
>moment : Symbol(moment, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
>moment : Symbol("tests/cases/compiler/node_modules/moment/index.d.ts", Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
>moment : Symbol(moment, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41))
|
||||
>Moment : Symbol(Moment, Decl(index.d.ts, 1, 26))
|
||||
|
||||
declare namespace moment {
|
||||
>moment : Symbol(moment, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
>moment : Symbol("tests/cases/compiler/node_modules/moment/index.d.ts", Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
|
||||
interface Moment extends Object {
|
||||
>Moment : Symbol(Moment, Decl(index.d.ts, 1, 26), Decl(idx.ts, 1, 25), Decl(idx.ts, 6, 34), Decl(index.d.ts, 2, 25))
|
||||
@ -32,7 +32,7 @@ export = moment;
|
||||
>moment : Symbol(moment, Decl(index.d.ts, 0, 6))
|
||||
|
||||
declare module "moment" {
|
||||
>"moment" : Symbol(moment, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
>"moment" : Symbol("tests/cases/compiler/node_modules/moment/index.d.ts", Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
|
||||
interface Moment {
|
||||
>Moment : Symbol(Moment, Decl(index.d.ts, 1, 26), Decl(idx.ts, 1, 25), Decl(idx.ts, 6, 34), Decl(index.d.ts, 2, 25))
|
||||
@ -46,7 +46,7 @@ import * as _moment from "moment";
|
||||
>_moment : Symbol(_moment, Decl(idx.ts, 0, 6))
|
||||
|
||||
declare module "moment" {
|
||||
>"moment" : Symbol(moment, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
>"moment" : Symbol("tests/cases/compiler/node_modules/moment/index.d.ts", Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(index.d.ts, 1, 16))
|
||||
|
||||
interface Moment {
|
||||
>Moment : Symbol(Moment, Decl(index.d.ts, 1, 26), Decl(idx.ts, 1, 25), Decl(idx.ts, 6, 34), Decl(index.d.ts, 2, 25))
|
||||
@ -57,7 +57,7 @@ declare module "moment" {
|
||||
}
|
||||
}
|
||||
declare module "moment-timezone" {
|
||||
>"moment-timezone" : Symbol(moment, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(idx.ts, 5, 1))
|
||||
>"moment-timezone" : Symbol("tests/cases/compiler/node_modules/moment/index.d.ts", Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 41), Decl(idx.ts, 0, 34), Decl(idx.ts, 5, 1))
|
||||
|
||||
interface Moment {
|
||||
>Moment : Symbol(Moment, Decl(index.d.ts, 1, 26), Decl(idx.ts, 1, 25), Decl(idx.ts, 6, 34), Decl(index.d.ts, 2, 25))
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
tests/cases/compiler/folder/bar.ts(1,9): error TS2305: Module '"./foo"' has no exported member 'nosuch'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/folder/foo.ts (0 errors) ====
|
||||
export {};
|
||||
==== tests/cases/compiler/folder/bar.ts (1 errors) ====
|
||||
import {nosuch} from './foo';
|
||||
~~~~~~
|
||||
!!! error TS2305: Module '"./foo"' has no exported member 'nosuch'.
|
||||
@ -0,0 +1,13 @@
|
||||
//// [tests/cases/compiler/moduleMemberMissingErrorIsRelative.ts] ////
|
||||
|
||||
//// [foo.ts]
|
||||
export {};
|
||||
//// [bar.ts]
|
||||
import {nosuch} from './foo';
|
||||
|
||||
//// [foo.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
//// [bar.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
@ -0,0 +1,6 @@
|
||||
=== tests/cases/compiler/folder/foo.ts ===
|
||||
export {};
|
||||
No type information for this code.=== tests/cases/compiler/folder/bar.ts ===
|
||||
import {nosuch} from './foo';
|
||||
>nosuch : Symbol(nosuch, Decl(bar.ts, 0, 8))
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
=== tests/cases/compiler/folder/foo.ts ===
|
||||
export {};
|
||||
No type information for this code.=== tests/cases/compiler/folder/bar.ts ===
|
||||
import {nosuch} from './foo';
|
||||
>nosuch : any
|
||||
|
||||
@ -3,10 +3,10 @@ declare module "foo" {
|
||||
>"foo" : Symbol("foo", Decl(module_augmentUninstantiatedModule.ts, 0, 0))
|
||||
|
||||
namespace M {}
|
||||
>M : Symbol(M, Decl(module_augmentUninstantiatedModule.ts, 0, 22), Decl(module_augmentUninstantiatedModule.ts, 2, 6), Decl(module_augmentUninstantiatedModule.ts, 6, 22))
|
||||
>M : Symbol("tests/cases/compiler/module_augmentUninstantiatedModule.ts", Decl(module_augmentUninstantiatedModule.ts, 0, 22), Decl(module_augmentUninstantiatedModule.ts, 2, 6), Decl(module_augmentUninstantiatedModule.ts, 6, 22))
|
||||
|
||||
var M;
|
||||
>M : Symbol(M, Decl(module_augmentUninstantiatedModule.ts, 0, 22), Decl(module_augmentUninstantiatedModule.ts, 2, 6), Decl(module_augmentUninstantiatedModule.ts, 6, 22))
|
||||
>M : Symbol("tests/cases/compiler/module_augmentUninstantiatedModule.ts", Decl(module_augmentUninstantiatedModule.ts, 0, 22), Decl(module_augmentUninstantiatedModule.ts, 2, 6), Decl(module_augmentUninstantiatedModule.ts, 6, 22))
|
||||
|
||||
export = M;
|
||||
>M : Symbol(M, Decl(module_augmentUninstantiatedModule.ts, 0, 22), Decl(module_augmentUninstantiatedModule.ts, 2, 6))
|
||||
@ -16,5 +16,5 @@ declare module "bar" {
|
||||
>"bar" : Symbol("bar", Decl(module_augmentUninstantiatedModule.ts, 4, 1))
|
||||
|
||||
module "foo" {}
|
||||
>"foo" : Symbol(M, Decl(module_augmentUninstantiatedModule.ts, 0, 22), Decl(module_augmentUninstantiatedModule.ts, 2, 6), Decl(module_augmentUninstantiatedModule.ts, 6, 22))
|
||||
>"foo" : Symbol("tests/cases/compiler/module_augmentUninstantiatedModule.ts", Decl(module_augmentUninstantiatedModule.ts, 0, 22), Decl(module_augmentUninstantiatedModule.ts, 2, 6), Decl(module_augmentUninstantiatedModule.ts, 6, 22))
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ export class c_public {
|
||||
// private elements
|
||||
// Export - Error ambient modules allowed only in global
|
||||
declare module 'm' {
|
||||
>'m' : Symbol('m', Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 0, 0))
|
||||
>'m' : Symbol("m", Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 0, 0))
|
||||
|
||||
export class c_private {
|
||||
>c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require2.ts, 2, 20))
|
||||
@ -97,7 +97,7 @@ declare module 'm' {
|
||||
|
||||
=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts ===
|
||||
declare module 'm2' {
|
||||
>'m2' : Symbol('m2', Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts, 0, 0))
|
||||
>'m2' : Symbol("m2", Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts, 0, 0))
|
||||
|
||||
export class c_private {
|
||||
>c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithExport_require3.ts, 0, 21))
|
||||
|
||||
@ -84,7 +84,7 @@ export class c_public {
|
||||
// private elements
|
||||
// Export - Error ambient modules allowed only in global
|
||||
declare module 'm' {
|
||||
>'m' : Symbol('m', Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 0, 0))
|
||||
>'m' : Symbol("m", Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 0, 0))
|
||||
|
||||
export class c_private {
|
||||
>c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require2.ts, 2, 20))
|
||||
@ -96,7 +96,7 @@ declare module 'm' {
|
||||
|
||||
=== tests/cases/compiler/privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts ===
|
||||
declare module 'm2' {
|
||||
>'m2' : Symbol('m2', Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 0))
|
||||
>'m2' : Symbol("m2", Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 0))
|
||||
|
||||
export class c_private {
|
||||
>c_private : Symbol(c_private, Decl(privacyTopLevelAmbientExternalModuleImportWithoutExport_require3.ts, 0, 21))
|
||||
|
||||
@ -38,7 +38,7 @@ var y: Foo2;
|
||||
|
||||
=== tests/cases/compiler/propertyIdentityWithPrivacyMismatch_0.ts ===
|
||||
declare module 'mod1' {
|
||||
>'mod1' : Symbol('mod1', Decl(propertyIdentityWithPrivacyMismatch_0.ts, 0, 0))
|
||||
>'mod1' : Symbol("mod1", Decl(propertyIdentityWithPrivacyMismatch_0.ts, 0, 0))
|
||||
|
||||
class Foo {
|
||||
>Foo : Symbol(Foo, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 0, 23))
|
||||
@ -48,7 +48,7 @@ declare module 'mod1' {
|
||||
}
|
||||
}
|
||||
declare module 'mod2' {
|
||||
>'mod2' : Symbol('mod2', Decl(propertyIdentityWithPrivacyMismatch_0.ts, 4, 1))
|
||||
>'mod2' : Symbol("mod2", Decl(propertyIdentityWithPrivacyMismatch_0.ts, 4, 1))
|
||||
|
||||
class Foo {
|
||||
>Foo : Symbol(Foo, Decl(propertyIdentityWithPrivacyMismatch_0.ts, 5, 23))
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
=== tests/cases/compiler/quotedModuleNameMustBeAmbient.ts ===
|
||||
module 'M' {}
|
||||
>'M' : Symbol('M', Decl(quotedModuleNameMustBeAmbient.ts, 0, 0))
|
||||
>'M' : Symbol("M", Decl(quotedModuleNameMustBeAmbient.ts, 0, 0))
|
||||
|
||||
declare module 'M2' {}
|
||||
>'M2' : Symbol('M2', Decl(quotedModuleNameMustBeAmbient.ts, 0, 13))
|
||||
>'M2' : Symbol("M2", Decl(quotedModuleNameMustBeAmbient.ts, 0, 13))
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/node_modules/react/index.d.ts ===
|
||||
declare namespace React {
|
||||
>React : Symbol(React, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 0))
|
||||
>React : Symbol("tests/cases/compiler/node_modules/react/index.d.ts", Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 0))
|
||||
|
||||
export interface DetailedHTMLProps<T, U> {}
|
||||
>DetailedHTMLProps : Symbol(DetailedHTMLProps, Decl(index.d.ts, 0, 25))
|
||||
@ -20,7 +20,7 @@ export as namespace React;
|
||||
=== tests/cases/compiler/node_modules/create-emotion-styled/types/react/index.d.ts ===
|
||||
/// <reference types="react" />
|
||||
declare module 'react' { // augment
|
||||
>'react' : Symbol(React, Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 0))
|
||||
>'react' : Symbol("tests/cases/compiler/node_modules/react/index.d.ts", Decl(index.d.ts, 0, 0), Decl(index.d.ts, 0, 0))
|
||||
|
||||
interface HTMLAttributes<T> {
|
||||
>HTMLAttributes : Symbol(HTMLAttributes, Decl(index.d.ts, 1, 47), Decl(index.d.ts, 1, 24))
|
||||
|
||||
@ -6,7 +6,7 @@ declare module "foobar" { export const x: number; }
|
||||
foobar;
|
||||
|
||||
declare module 'barfoo' { export const x: number; }
|
||||
>'barfoo' : Symbol('barfoo', Decl(spellingSuggestionModule.ts, 1, 7))
|
||||
>'barfoo' : Symbol("barfoo", Decl(spellingSuggestionModule.ts, 1, 7))
|
||||
>x : Symbol(x, Decl(spellingSuggestionModule.ts, 3, 38))
|
||||
|
||||
barfoo;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/conformance/jsx/react.d.ts ===
|
||||
declare module 'react' {
|
||||
>'react' : Symbol('react', Decl(react.d.ts, 0, 0))
|
||||
>'react' : Symbol("react", Decl(react.d.ts, 0, 0))
|
||||
|
||||
class Component<T, U> { }
|
||||
>Component : Symbol(Component, Decl(react.d.ts, 0, 24))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/conformance/jsx/react.d.ts ===
|
||||
declare module 'react' {
|
||||
>'react' : Symbol('react', Decl(react.d.ts, 0, 0))
|
||||
>'react' : Symbol("react", Decl(react.d.ts, 0, 0))
|
||||
|
||||
class Component<T, U> { }
|
||||
>Component : Symbol(Component, Decl(react.d.ts, 0, 24))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/conformance/jsx/react.d.ts ===
|
||||
declare module 'react' {
|
||||
>'react' : Symbol('react', Decl(react.d.ts, 0, 0))
|
||||
>'react' : Symbol("react", Decl(react.d.ts, 0, 0))
|
||||
|
||||
class Component<T, U> { }
|
||||
>Component : Symbol(Component, Decl(react.d.ts, 0, 24))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/conformance/jsx/react.d.ts ===
|
||||
declare module 'react' {
|
||||
>'react' : Symbol('react', Decl(react.d.ts, 0, 0))
|
||||
>'react' : Symbol("react", Decl(react.d.ts, 0, 0))
|
||||
|
||||
class Component<T, U> { }
|
||||
>Component : Symbol(Component, Decl(react.d.ts, 0, 24))
|
||||
|
||||
@ -24,7 +24,7 @@ declare module JSX {
|
||||
}
|
||||
|
||||
declare module 'elements1' {
|
||||
>'elements1' : Symbol('elements1', Decl(file.tsx, 3, 1))
|
||||
>'elements1' : Symbol("elements1", Decl(file.tsx, 3, 1))
|
||||
|
||||
class MyElement {
|
||||
>MyElement : Symbol(MyElement, Decl(file.tsx, 5, 28))
|
||||
@ -33,7 +33,7 @@ declare module 'elements1' {
|
||||
}
|
||||
|
||||
declare module 'elements2' {
|
||||
>'elements2' : Symbol('elements2', Decl(file.tsx, 9, 1))
|
||||
>'elements2' : Symbol("elements2", Decl(file.tsx, 9, 1))
|
||||
|
||||
class MyElement {
|
||||
>MyElement : Symbol(MyElement, Decl(file.tsx, 11, 28))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/conformance/jsx/react.d.ts ===
|
||||
declare module 'react' {
|
||||
>'react' : Symbol('react', Decl(react.d.ts, 0, 0))
|
||||
>'react' : Symbol("react", Decl(react.d.ts, 0, 0))
|
||||
|
||||
class Component<T, U> { }
|
||||
>Component : Symbol(Component, Decl(react.d.ts, 0, 24))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
=== tests/cases/conformance/jsx/modules.d.ts ===
|
||||
declare module 'mod' {
|
||||
>'mod' : Symbol('mod', Decl(modules.d.ts, 0, 0))
|
||||
>'mod' : Symbol("mod", Decl(modules.d.ts, 0, 0))
|
||||
|
||||
var y: any;
|
||||
>y : Symbol(y, Decl(modules.d.ts, 1, 5))
|
||||
|
||||
@ -33,7 +33,7 @@ module M {
|
||||
|
||||
=== tests/cases/conformance/jsx/react.d.ts ===
|
||||
declare module 'react' {
|
||||
>'react' : Symbol('react', Decl(react.d.ts, 0, 0))
|
||||
>'react' : Symbol("react", Decl(react.d.ts, 0, 0))
|
||||
|
||||
var x: any;
|
||||
>x : Symbol(x, Decl(react.d.ts, 1, 4))
|
||||
@ -52,7 +52,7 @@ declare module ReactRouter {
|
||||
>Thing : Symbol(Thing, Decl(react.d.ts, 6, 16))
|
||||
}
|
||||
declare module 'react-router' {
|
||||
>'react-router' : Symbol('react-router', Decl(react.d.ts, 8, 1))
|
||||
>'react-router' : Symbol("react-router", Decl(react.d.ts, 8, 1))
|
||||
|
||||
export = ReactRouter;
|
||||
>ReactRouter : Symbol(ReactRouter, Decl(react.d.ts, 3, 1))
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
tests/cases/conformance/declarationEmit/main.ts(1,10): error TS2305: Module '"tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index"' has no exported member 'fa'.
|
||||
tests/cases/conformance/declarationEmit/main.ts(1,10): error TS2305: Module '"./node_modules/ext/ts3.1"' has no exported member 'fa'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/declarationEmit/tsconfig.json (0 errors) ====
|
||||
@ -30,7 +30,7 @@ tests/cases/conformance/declarationEmit/main.ts(1,10): error TS2305: Module '"te
|
||||
==== tests/cases/conformance/declarationEmit/main.ts (1 errors) ====
|
||||
import { fa } from "ext";
|
||||
~~
|
||||
!!! error TS2305: Module '"tests/cases/conformance/declarationEmit/node_modules/ext/ts3.1/index"' has no exported member 'fa'.
|
||||
!!! error TS2305: Module '"./node_modules/ext/ts3.1"' has no exported member 'fa'.
|
||||
import { fb } from "ext/other";
|
||||
|
||||
export const va = fa();
|
||||
|
||||
@ -44,7 +44,7 @@ export = M2D;
|
||||
>M2D : Symbol(M2D, Decl(index.d.ts, 2, 13))
|
||||
|
||||
declare namespace M2D {
|
||||
>M2D : Symbol(M2D, Decl(index.d.ts, 2, 13), Decl(math2d-augment.d.ts, 0, 33))
|
||||
>M2D : Symbol("tests/cases/conformance/externalModules/node_modules/math2d/index.d.ts", Decl(index.d.ts, 2, 13), Decl(math2d-augment.d.ts, 0, 33))
|
||||
|
||||
interface Point {
|
||||
>Point : Symbol(Point, Decl(index.d.ts, 4, 23))
|
||||
|
||||
@ -42,7 +42,7 @@ export = M2D;
|
||||
>M2D : Symbol(M2D, Decl(index.d.ts, 2, 13))
|
||||
|
||||
declare namespace M2D {
|
||||
>M2D : Symbol(M2D, Decl(index.d.ts, 2, 13), Decl(math2d-augment.d.ts, 0, 33))
|
||||
>M2D : Symbol("tests/cases/conformance/externalModules/node_modules/math2d/index.d.ts", Decl(index.d.ts, 2, 13), Decl(math2d-augment.d.ts, 0, 33))
|
||||
|
||||
interface Point {
|
||||
>Point : Symbol(Point, Decl(index.d.ts, 4, 23))
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
tests/cases/compiler/t2.ts(1,13): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t2.ts(1,13): error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t2.ts(1,18): error TS1005: ',' expected.
|
||||
tests/cases/compiler/t3.ts(1,10): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t3.ts(1,10): error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t3.ts(1,15): error TS1005: ',' expected.
|
||||
tests/cases/compiler/t4.ts(1,17): error TS1005: ',' expected.
|
||||
tests/cases/compiler/t4.ts(1,17): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t4.ts(1,17): error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t4.ts(1,22): error TS1005: ',' expected.
|
||||
tests/cases/compiler/t5.ts(1,18): error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t5.ts(1,18): error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
tests/cases/compiler/t5.ts(1,23): error TS1005: ',' expected.
|
||||
|
||||
|
||||
@ -15,14 +15,14 @@ tests/cases/compiler/t5.ts(1,23): error TS1005: ',' expected.
|
||||
==== tests/cases/compiler/t2.ts (2 errors) ====
|
||||
export { x, from "./t1"
|
||||
~~~~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
!!! error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
~~~~~~
|
||||
!!! error TS1005: ',' expected.
|
||||
|
||||
==== tests/cases/compiler/t3.ts (2 errors) ====
|
||||
export { from "./t1"
|
||||
~~~~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
!!! error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
~~~~~~
|
||||
!!! error TS1005: ',' expected.
|
||||
|
||||
@ -31,13 +31,13 @@ tests/cases/compiler/t5.ts(1,23): error TS1005: ',' expected.
|
||||
~~~~
|
||||
!!! error TS1005: ',' expected.
|
||||
~~~~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
!!! error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
~~~~~~
|
||||
!!! error TS1005: ',' expected.
|
||||
|
||||
==== tests/cases/compiler/t5.ts (2 errors) ====
|
||||
export { x as a, from "./t1"
|
||||
~~~~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/t1"' has no exported member 'from'.
|
||||
!!! error TS2305: Module '"./t1"' has no exported member 'from'.
|
||||
~~~~~~
|
||||
!!! error TS1005: ',' expected.
|
||||
@ -0,0 +1,4 @@
|
||||
// @filename: folder/foo.ts
|
||||
export {};
|
||||
// @filename: folder/bar.ts
|
||||
import {nosuch} from './foo';
|
||||
Loading…
x
Reference in New Issue
Block a user