mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Test baselines after asynchronous alias declaration writing
This commit is contained in:
-19
@@ -1,19 +0,0 @@
|
||||
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_1.ts (1 errors) ====
|
||||
///<reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.ts'/>
|
||||
import SubModule = require('SubModule');
|
||||
export var x: SubModule.m.m3.c;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using name 'SubModule.m.m3.c' from private module 'SubModule'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_0.ts (0 errors) ====
|
||||
|
||||
declare module "SubModule" {
|
||||
export module m {
|
||||
export module m3 {
|
||||
interface c {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,3 +30,27 @@ declare module "SubModule" {
|
||||
}
|
||||
}
|
||||
}
|
||||
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts]
|
||||
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
|
||||
import SubModule = require('SubModule');
|
||||
export declare var x: SubModule.m.m3.c;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts (1 errors) ====
|
||||
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
|
||||
import SubModule = require('SubModule');
|
||||
export declare var x: SubModule.m.m3.c;
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! Module '"SubModule".m.m3' has no exported member 'c'.
|
||||
|
||||
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts (0 errors) ====
|
||||
declare module "SubModule" {
|
||||
module m {
|
||||
module m3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_1.ts (1 errors) ====
|
||||
import a = require('declFileExportAssignmentOfGenericInterface_0');
|
||||
export var x: a<a<string>>;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using private name 'a'.
|
||||
x.a;
|
||||
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_0.ts (0 errors) ====
|
||||
|
||||
interface Foo<T> {
|
||||
a: string;
|
||||
}
|
||||
export = Foo;
|
||||
|
||||
@@ -27,3 +27,6 @@ interface Foo<T> {
|
||||
a: string;
|
||||
}
|
||||
export = Foo;
|
||||
//// [declFileExportAssignmentOfGenericInterface_1.d.ts]
|
||||
import a = require('declFileExportAssignmentOfGenericInterface_0');
|
||||
export declare var x: a<a<string>>;
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
==== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts (2 errors) ====
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
export var a = a1;
|
||||
~
|
||||
!!! Exported variable 'a' has or is using name 'a1.connectExport' from private module 'a1'.
|
||||
~
|
||||
!!! Exported variable 'a' has or is using name 'a1.connectModule' from private module 'a1'.
|
||||
a.test1(null, null, null);
|
||||
|
||||
==== tests/cases/compiler/declFileImportModuleWithExportAssignment_0.ts (0 errors) ====
|
||||
|
||||
module m2 {
|
||||
export interface connectModule {
|
||||
(res, req, next): void;
|
||||
}
|
||||
export interface connectExport {
|
||||
use: (mod: connectModule) => connectExport;
|
||||
listen: (port: number) => void;
|
||||
}
|
||||
|
||||
}
|
||||
var m2: {
|
||||
(): m2.connectExport;
|
||||
test1: m2.connectModule;
|
||||
test2(): m2.connectModule;
|
||||
};
|
||||
export = m2;
|
||||
|
||||
@@ -51,3 +51,10 @@ declare var m2: {
|
||||
test2(): m2.connectModule;
|
||||
};
|
||||
export = m2;
|
||||
//// [declFileImportModuleWithExportAssignment_1.d.ts]
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
export declare var a: {
|
||||
(): a1.connectExport;
|
||||
test1: a1.connectModule;
|
||||
test2(): a1.connectModule;
|
||||
};
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
==== tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.ts (1 errors) ====
|
||||
class List<T> { }
|
||||
declare module 'mod1' {
|
||||
class Foo {
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'moo' {
|
||||
import x = require('mod1');
|
||||
export var p: List<x.Foo>;
|
||||
~
|
||||
!!! Exported variable 'p' has or is using name 'x.Foo' from private module 'x'.
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -19,3 +19,31 @@ var List = (function () {
|
||||
}
|
||||
return List;
|
||||
})();
|
||||
|
||||
|
||||
//// [declFileImportedTypeUseInTypeArgPosition.d.ts]
|
||||
declare class List<T> {
|
||||
}
|
||||
declare module 'mod1' {
|
||||
}
|
||||
declare module 'moo' {
|
||||
import x = require('mod1');
|
||||
var p: List<x.Foo>;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.d.ts (1 errors) ====
|
||||
declare class List<T> {
|
||||
}
|
||||
declare module 'mod1' {
|
||||
}
|
||||
declare module 'moo' {
|
||||
import x = require('mod1');
|
||||
var p: List<x.Foo>;
|
||||
~~~~~
|
||||
!!! Module ''mod1'' has no exported member 'Foo'.
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
==== tests/cases/compiler/declFileInternalAliases.ts (1 errors) ====
|
||||
module m {
|
||||
export class c {
|
||||
}
|
||||
}
|
||||
module m1 {
|
||||
import x = m.c;
|
||||
export var d = new x(); // emit the type as m.c
|
||||
~
|
||||
!!! Exported variable 'd' has or is using private name 'x'.
|
||||
}
|
||||
module m2 {
|
||||
export import x = m.c;
|
||||
export var d = new x(); // emit the type as x
|
||||
}
|
||||
@@ -32,3 +32,18 @@ var m2;
|
||||
m2.x = m.c;
|
||||
m2.d = new m2.x();
|
||||
})(m2 || (m2 = {}));
|
||||
|
||||
|
||||
//// [declFileInternalAliases.d.ts]
|
||||
declare module m {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
declare module m1 {
|
||||
import x = m.c;
|
||||
var d: x;
|
||||
}
|
||||
declare module m2 {
|
||||
export import x = m.c;
|
||||
var d: x;
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
==== tests/cases/compiler/importDeclarationUsedAsTypeQuery_1.ts (1 errors) ====
|
||||
///<reference path='importDeclarationUsedAsTypeQuery_require.ts'/>
|
||||
import a = require('importDeclarationUsedAsTypeQuery_require');
|
||||
export var x: typeof a;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using private name 'a'.
|
||||
|
||||
==== tests/cases/compiler/importDeclarationUsedAsTypeQuery_require.ts (0 errors) ====
|
||||
export class B {
|
||||
id: number;
|
||||
}
|
||||
|
||||
@@ -26,3 +26,7 @@ exports.x;
|
||||
export declare class B {
|
||||
id: number;
|
||||
}
|
||||
//// [importDeclarationUsedAsTypeQuery_1.d.ts]
|
||||
/// <reference path='importDeclarationUsedAsTypeQuery_require.d.ts' />
|
||||
import a = require('importDeclarationUsedAsTypeQuery_require');
|
||||
export declare var x: typeof a;
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasClass.ts (1 errors) ====
|
||||
module a {
|
||||
export class c {
|
||||
}
|
||||
}
|
||||
|
||||
module c {
|
||||
import b = a.c;
|
||||
export var x: b = new b();
|
||||
~
|
||||
!!! Exported variable 'x' has or is using private name 'b'.
|
||||
}
|
||||
@@ -24,3 +24,14 @@ var c;
|
||||
var b = a.c;
|
||||
c.x = new b();
|
||||
})(c || (c = {}));
|
||||
|
||||
|
||||
//// [internalAliasClass.d.ts]
|
||||
declare module a {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
import b = a.c;
|
||||
var x: b;
|
||||
}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasClassInsideLocalModuleWithoutExport.ts (1 errors) ====
|
||||
export module x {
|
||||
export class c {
|
||||
foo(a: number) {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export module m2 {
|
||||
export module m3 {
|
||||
import c = x.c;
|
||||
export var cProp = new c();
|
||||
~~~~~
|
||||
!!! Exported variable 'cProp' has or is using private name 'c'.
|
||||
var cReturnVal = cProp.foo(10);
|
||||
}
|
||||
}
|
||||
@@ -37,3 +37,17 @@ var x = exports.x;
|
||||
var m3 = m2.m3;
|
||||
})(exports.m2 || (exports.m2 = {}));
|
||||
var m2 = exports.m2;
|
||||
|
||||
|
||||
//// [internalAliasClassInsideLocalModuleWithoutExport.d.ts]
|
||||
export declare module x {
|
||||
class c {
|
||||
foo(a: number): number;
|
||||
}
|
||||
}
|
||||
export declare module m2 {
|
||||
module m3 {
|
||||
import c = x.c;
|
||||
var cProp: c;
|
||||
}
|
||||
}
|
||||
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithoutExport.ts (1 errors) ====
|
||||
export module x {
|
||||
export class c {
|
||||
foo(a: number) {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import xc = x.c;
|
||||
export var cProp = new xc();
|
||||
~~~~~
|
||||
!!! Exported variable 'cProp' has or is using private name 'xc'.
|
||||
var cReturnVal = cProp.foo(10);
|
||||
@@ -27,3 +27,13 @@ var x = exports.x;
|
||||
var xc = x.c;
|
||||
exports.cProp = new xc();
|
||||
var cReturnVal = exports.cProp.foo(10);
|
||||
|
||||
|
||||
//// [internalAliasClassInsideTopLevelModuleWithoutExport.d.ts]
|
||||
export declare module x {
|
||||
class c {
|
||||
foo(a: number): number;
|
||||
}
|
||||
}
|
||||
import xc = x.c;
|
||||
export declare var cProp: xc;
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasEnum.ts (1 errors) ====
|
||||
module a {
|
||||
export enum weekend {
|
||||
Friday,
|
||||
Saturday,
|
||||
Sunday
|
||||
}
|
||||
}
|
||||
|
||||
module c {
|
||||
import b = a.weekend;
|
||||
export var bVal: b = b.Sunday;
|
||||
~~~~
|
||||
!!! Exported variable 'bVal' has or is using private name 'b'.
|
||||
}
|
||||
|
||||
@@ -28,3 +28,17 @@ var c;
|
||||
var b = a.weekend;
|
||||
c.bVal = 2 /* Sunday */;
|
||||
})(c || (c = {}));
|
||||
|
||||
|
||||
//// [internalAliasEnum.d.ts]
|
||||
declare module a {
|
||||
enum weekend {
|
||||
Friday = 0,
|
||||
Saturday = 1,
|
||||
Sunday = 2,
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
import b = a.weekend;
|
||||
var bVal: b;
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasEnumInsideLocalModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export enum weekend {
|
||||
Friday,
|
||||
Saturday,
|
||||
Sunday
|
||||
}
|
||||
}
|
||||
|
||||
export module c {
|
||||
import b = a.weekend;
|
||||
export var bVal: b = b.Sunday;
|
||||
~~~~
|
||||
!!! Exported variable 'bVal' has or is using private name 'b'.
|
||||
}
|
||||
|
||||
@@ -28,3 +28,17 @@ var a = exports.a;
|
||||
c.bVal = 2 /* Sunday */;
|
||||
})(exports.c || (exports.c = {}));
|
||||
var c = exports.c;
|
||||
|
||||
|
||||
//// [internalAliasEnumInsideLocalModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
enum weekend {
|
||||
Friday = 0,
|
||||
Saturday = 1,
|
||||
Sunday = 2,
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
import b = a.weekend;
|
||||
var bVal: b;
|
||||
}
|
||||
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasEnumInsideTopLevelModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export enum weekend {
|
||||
Friday,
|
||||
Saturday,
|
||||
Sunday
|
||||
}
|
||||
}
|
||||
|
||||
import b = a.weekend;
|
||||
export var bVal: b = b.Sunday;
|
||||
~~~~
|
||||
!!! Exported variable 'bVal' has or is using private name 'b'.
|
||||
|
||||
@@ -25,3 +25,15 @@ define(["require", "exports"], function (require, exports) {
|
||||
var b = a.weekend;
|
||||
exports.bVal = 2 /* Sunday */;
|
||||
});
|
||||
|
||||
|
||||
//// [internalAliasEnumInsideTopLevelModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
enum weekend {
|
||||
Friday = 0,
|
||||
Saturday = 1,
|
||||
Sunday = 2,
|
||||
}
|
||||
}
|
||||
import b = a.weekend;
|
||||
export declare var bVal: b;
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasInitializedModule.ts (1 errors) ====
|
||||
module a {
|
||||
export module b {
|
||||
export class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module c {
|
||||
import b = a.b;
|
||||
export var x: b.c = new b.c();
|
||||
~
|
||||
!!! Exported variable 'x' has or is using name 'b.c' from private module 'b'.
|
||||
}
|
||||
@@ -29,3 +29,16 @@ var c;
|
||||
var b = a.b;
|
||||
c.x = new b.c();
|
||||
})(c || (c = {}));
|
||||
|
||||
|
||||
//// [internalAliasInitializedModule.d.ts]
|
||||
declare module a {
|
||||
module b {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
import b = a.b;
|
||||
var x: b.c;
|
||||
}
|
||||
|
||||
-14
@@ -1,14 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasInitializedModuleInsideLocalModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export module b {
|
||||
export class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export module c {
|
||||
import b = a.b;
|
||||
export var x: b.c = new b.c();
|
||||
~
|
||||
!!! Exported variable 'x' has or is using name 'b.c' from private module 'b'.
|
||||
}
|
||||
+13
@@ -29,3 +29,16 @@ var a = exports.a;
|
||||
c.x = new b.c();
|
||||
})(exports.c || (exports.c = {}));
|
||||
var c = exports.c;
|
||||
|
||||
|
||||
//// [internalAliasInitializedModuleInsideLocalModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
module b {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
import b = a.b;
|
||||
var x: b.c;
|
||||
}
|
||||
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export module b {
|
||||
export class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import b = a.b;
|
||||
export var x: b.c = new b.c();
|
||||
~
|
||||
!!! Exported variable 'x' has or is using name 'b.c' from private module 'b'.
|
||||
+11
@@ -26,3 +26,14 @@ define(["require", "exports"], function (require, exports) {
|
||||
var b = a.b;
|
||||
exports.x = new b.c();
|
||||
});
|
||||
|
||||
|
||||
//// [internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
module b {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
import b = a.b;
|
||||
export declare var x: b.c;
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasInterface.ts (1 errors) ====
|
||||
module a {
|
||||
export interface I {
|
||||
}
|
||||
}
|
||||
|
||||
module c {
|
||||
import b = a.I;
|
||||
export var x: b;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using private name 'b'.
|
||||
}
|
||||
|
||||
@@ -15,3 +15,14 @@ var c;
|
||||
(function (c) {
|
||||
c.x;
|
||||
})(c || (c = {}));
|
||||
|
||||
|
||||
//// [internalAliasInterface.d.ts]
|
||||
declare module a {
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
import b = a.I;
|
||||
var x: b;
|
||||
}
|
||||
|
||||
-13
@@ -1,13 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export interface I {
|
||||
}
|
||||
}
|
||||
|
||||
export module c {
|
||||
import b = a.I;
|
||||
export var x: b;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using private name 'b'.
|
||||
}
|
||||
|
||||
@@ -17,3 +17,14 @@ define(["require", "exports"], function (require, exports) {
|
||||
})(exports.c || (exports.c = {}));
|
||||
var c = exports.c;
|
||||
});
|
||||
|
||||
|
||||
//// [internalAliasInterfaceInsideLocalModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
import b = a.I;
|
||||
var x: b;
|
||||
}
|
||||
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasInterfaceInsideTopLevelModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export interface I {
|
||||
}
|
||||
}
|
||||
|
||||
import b = a.I;
|
||||
export var x: b;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using private name 'b'.
|
||||
|
||||
@@ -12,3 +12,12 @@ export var x: b;
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
exports.x;
|
||||
});
|
||||
|
||||
|
||||
//// [internalAliasInterfaceInsideTopLevelModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
import b = a.I;
|
||||
export declare var x: b;
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasUninitializedModule.ts (1 errors) ====
|
||||
module a {
|
||||
export module b {
|
||||
export interface I {
|
||||
foo();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module c {
|
||||
import b = a.b;
|
||||
export var x: b.I;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using name 'b.I' from private module 'b'.
|
||||
x.foo();
|
||||
}
|
||||
@@ -19,3 +19,17 @@ var c;
|
||||
c.x;
|
||||
c.x.foo();
|
||||
})(c || (c = {}));
|
||||
|
||||
|
||||
//// [internalAliasUninitializedModule.d.ts]
|
||||
declare module a {
|
||||
module b {
|
||||
interface I {
|
||||
foo(): any;
|
||||
}
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
import b = a.b;
|
||||
var x: b.I;
|
||||
}
|
||||
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export module b {
|
||||
export interface I {
|
||||
foo();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export module c {
|
||||
import b = a.b;
|
||||
export var x: b.I;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using name 'b.I' from private module 'b'.
|
||||
x.foo();
|
||||
}
|
||||
+14
@@ -19,3 +19,17 @@ export module c {
|
||||
c.x.foo();
|
||||
})(exports.c || (exports.c = {}));
|
||||
var c = exports.c;
|
||||
|
||||
|
||||
//// [internalAliasUninitializedModuleInsideLocalModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
module b {
|
||||
interface I {
|
||||
foo(): any;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
import b = a.b;
|
||||
var x: b.I;
|
||||
}
|
||||
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
==== tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.ts (1 errors) ====
|
||||
export module a {
|
||||
export module b {
|
||||
export interface I {
|
||||
foo();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
import b = a.b;
|
||||
export var x: b.I;
|
||||
~
|
||||
!!! Exported variable 'x' has or is using name 'b.I' from private module 'b'.
|
||||
x.foo();
|
||||
|
||||
+12
@@ -15,3 +15,15 @@ x.foo();
|
||||
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.js]
|
||||
exports.x;
|
||||
exports.x.foo();
|
||||
|
||||
|
||||
//// [internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.d.ts]
|
||||
export declare module a {
|
||||
module b {
|
||||
interface I {
|
||||
foo(): any;
|
||||
}
|
||||
}
|
||||
}
|
||||
import b = a.b;
|
||||
export declare var x: b.I;
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
==== tests/cases/compiler/missingImportAfterModuleImport_1.ts (1 errors) ====
|
||||
///<reference path='missingImportAfterModuleImport_0.ts'/>
|
||||
import SubModule = require('SubModule');
|
||||
class MainModule {
|
||||
// public static SubModule: SubModule;
|
||||
public SubModule: SubModule;
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! Property 'SubModule' of exported interface has or is using private name 'SubModule'.
|
||||
constructor() { }
|
||||
}
|
||||
export = MainModule;
|
||||
|
||||
|
||||
==== tests/cases/compiler/missingImportAfterModuleImport_0.ts (0 errors) ====
|
||||
|
||||
declare module "SubModule" {
|
||||
class SubModule {
|
||||
public static StaticVar: number;
|
||||
public InstanceVar: number;
|
||||
constructor();
|
||||
}
|
||||
export = SubModule;
|
||||
}
|
||||
|
||||
@@ -42,3 +42,11 @@ declare module "SubModule" {
|
||||
}
|
||||
export = SubModule;
|
||||
}
|
||||
//// [missingImportAfterModuleImport_1.d.ts]
|
||||
/// <reference path='missingImportAfterModuleImport_0.d.ts' />
|
||||
import SubModule = require('SubModule');
|
||||
declare class MainModule {
|
||||
SubModule: SubModule;
|
||||
constructor();
|
||||
}
|
||||
export = MainModule;
|
||||
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
useModule.ts(4,9): Property 'c' of exported interface has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(10,16): Exported variable 'c' has or is using name 'm1.v' from private module 'm1'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"m4.js",
|
||||
"m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
declare module "quotedm1" {
|
||||
import m4 = require("m4");
|
||||
class v {
|
||||
c: m4.d;
|
||||
}
|
||||
}
|
||||
declare module "quotedm2" {
|
||||
import m1 = require("quotedm1");
|
||||
var c: m1.v;
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
useModule.ts(4,9): Property 'c' of exported interface has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(10,16): Exported variable 'c' has or is using name 'm1.v' from private module 'm1'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"m4.js",
|
||||
"m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
declare module "quotedm1" {
|
||||
import m4 = require("m4");
|
||||
class v {
|
||||
c: m4.d;
|
||||
}
|
||||
}
|
||||
declare module "quotedm2" {
|
||||
import m1 = require("quotedm1");
|
||||
var c: m1.v;
|
||||
}
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'useGlo_m4_x4' has or is using name 'glo_m4.d' from private module 'glo_m4'.
|
||||
useModule.ts(3,12): Exported variable 'useGlo_m4_d4' has or is using name 'glo_m4.d' from private module 'glo_m4'.
|
||||
useModule.ts(4,12): Exported variable 'useGlo_m4_f4' has or is using name 'glo_m4.d' from private module 'glo_m4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"glo_m4.js",
|
||||
"glo_m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import glo_m4 = require("glo_m4");
|
||||
export declare var useGlo_m4_x4: glo_m4.d;
|
||||
export declare var useGlo_m4_d4: typeof glo_m4.d;
|
||||
export declare var useGlo_m4_f4: glo_m4.d;
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'useGlo_m4_x4' has or is using name 'glo_m4.d' from private module 'glo_m4'.
|
||||
useModule.ts(3,12): Exported variable 'useGlo_m4_d4' has or is using name 'glo_m4.d' from private module 'glo_m4'.
|
||||
useModule.ts(4,12): Exported variable 'useGlo_m4_f4' has or is using name 'glo_m4.d' from private module 'glo_m4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"glo_m4.js",
|
||||
"glo_m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import glo_m4 = require("glo_m4");
|
||||
export declare var useGlo_m4_x4: glo_m4.d;
|
||||
export declare var useGlo_m4_d4: typeof glo_m4.d;
|
||||
export declare var useGlo_m4_f4: glo_m4.d;
|
||||
-1
@@ -1 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'useFncOnly_m4_f4' has or is using name 'fncOnly_m4.d' from private module 'fncOnly_m4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"fncOnly_m4.js",
|
||||
"fncOnly_m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import fncOnly_m4 = require("fncOnly_m4");
|
||||
export declare var useFncOnly_m4_f4: fncOnly_m4.d;
|
||||
-1
@@ -1 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'useFncOnly_m4_f4' has or is using name 'fncOnly_m4.d' from private module 'fncOnly_m4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"fncOnly_m4.js",
|
||||
"fncOnly_m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import fncOnly_m4 = require("fncOnly_m4");
|
||||
export declare var useFncOnly_m4_f4: fncOnly_m4.d;
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(3,12): Exported variable 'd4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(4,12): Exported variable 'f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(7,16): Exported variable 'x2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(8,16): Exported variable 'd2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(9,16): Exported variable 'f2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(18,12): Exported variable 'useMultiImport_m4_x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(19,12): Exported variable 'useMultiImport_m4_d4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(20,12): Exported variable 'useMultiImport_m4_f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"m4.js",
|
||||
"m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import m4 = require("m4");
|
||||
export declare var x4: m4.d;
|
||||
export declare var d4: typeof m4.d;
|
||||
export declare var f4: m4.d;
|
||||
export declare module m1 {
|
||||
var x2: m4.d;
|
||||
var d2: typeof m4.d;
|
||||
var f2: m4.d;
|
||||
}
|
||||
export declare var useMultiImport_m4_x4: m4.d;
|
||||
export declare var useMultiImport_m4_d4: typeof m4.d;
|
||||
export declare var useMultiImport_m4_f4: m4.d;
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(3,12): Exported variable 'd4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(4,12): Exported variable 'f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(7,16): Exported variable 'x2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(8,16): Exported variable 'd2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(9,16): Exported variable 'f2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(18,12): Exported variable 'useMultiImport_m4_x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(19,12): Exported variable 'useMultiImport_m4_d4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(20,12): Exported variable 'useMultiImport_m4_f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"m4.js",
|
||||
"m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import m4 = require("m4");
|
||||
export declare var x4: m4.d;
|
||||
export declare var d4: typeof m4.d;
|
||||
export declare var f4: m4.d;
|
||||
export declare module m1 {
|
||||
var x2: m4.d;
|
||||
var d2: typeof m4.d;
|
||||
var f2: m4.d;
|
||||
}
|
||||
export declare var useMultiImport_m4_x4: m4.d;
|
||||
export declare var useMultiImport_m4_d4: typeof m4.d;
|
||||
export declare var useMultiImport_m4_f4: m4.d;
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(3,12): Exported variable 'd4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(4,12): Exported variable 'f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(7,16): Exported variable 'x2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(8,16): Exported variable 'd2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(9,16): Exported variable 'f2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(18,12): Exported variable 'd' has or is using name 'm4.d' from private module 'm4'.
|
||||
+2
-1
@@ -17,6 +17,7 @@
|
||||
"m4.d.ts",
|
||||
"m5.js",
|
||||
"m5.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+1
@@ -1 +1,2 @@
|
||||
import m4 = require("m4");
|
||||
export declare function foo2(): m4.d;
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import m4 = require("m4");
|
||||
export declare var x4: m4.d;
|
||||
export declare var d4: typeof m4.d;
|
||||
export declare var f4: m4.d;
|
||||
export declare module m1 {
|
||||
var x2: m4.d;
|
||||
var d2: typeof m4.d;
|
||||
var f2: m4.d;
|
||||
}
|
||||
export declare var d: m4.d;
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(3,12): Exported variable 'd4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(4,12): Exported variable 'f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(7,16): Exported variable 'x2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(8,16): Exported variable 'd2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(9,16): Exported variable 'f2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(18,12): Exported variable 'd' has or is using name 'm4.d' from private module 'm4'.
|
||||
+2
-1
@@ -17,6 +17,7 @@
|
||||
"m4.d.ts",
|
||||
"m5.js",
|
||||
"m5.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+1
@@ -1 +1,2 @@
|
||||
import m4 = require("m4");
|
||||
export declare function foo2(): m4.d;
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import m4 = require("m4");
|
||||
export declare var x4: m4.d;
|
||||
export declare var d4: typeof m4.d;
|
||||
export declare var f4: m4.d;
|
||||
export declare module m1 {
|
||||
var x2: m4.d;
|
||||
var d2: typeof m4.d;
|
||||
var f2: m4.d;
|
||||
}
|
||||
export declare var d: m4.d;
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(3,12): Exported variable 'd4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(4,12): Exported variable 'f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(7,16): Exported variable 'x2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(8,16): Exported variable 'd2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(9,16): Exported variable 'f2' has or is using name 'm4.d' from private module 'm4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"m4.js",
|
||||
"m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import m4 = require("m4");
|
||||
export declare var x4: m4.d;
|
||||
export declare var d4: typeof m4.d;
|
||||
export declare var f4: m4.d;
|
||||
export declare module m1 {
|
||||
var x2: m4.d;
|
||||
var d2: typeof m4.d;
|
||||
var f2: m4.d;
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
useModule.ts(2,12): Exported variable 'x4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(3,12): Exported variable 'd4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(4,12): Exported variable 'f4' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(7,16): Exported variable 'x2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(8,16): Exported variable 'd2' has or is using name 'm4.d' from private module 'm4'.
|
||||
useModule.ts(9,16): Exported variable 'f2' has or is using name 'm4.d' from private module 'm4'.
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"emittedFiles": [
|
||||
"m4.js",
|
||||
"m4.d.ts",
|
||||
"useModule.js"
|
||||
"useModule.js",
|
||||
"useModule.d.ts"
|
||||
]
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import m4 = require("m4");
|
||||
export declare var x4: m4.d;
|
||||
export declare var d4: typeof m4.d;
|
||||
export declare var f4: m4.d;
|
||||
export declare module m1 {
|
||||
var x2: m4.d;
|
||||
var d2: typeof m4.d;
|
||||
var f2: m4.d;
|
||||
}
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
test.ts(13,12): Exported variable 'a2' has or is using name 'm1.m1_c1' from private module 'm1'.
|
||||
test.ts(14,12): Exported variable 'a3' has or is using name 'm2.m2_c1' from private module 'm2'.
|
||||
+2
-1
@@ -23,6 +23,7 @@
|
||||
"../outputdir_module_multifolder_ref/m2.js",
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js"
|
||||
"test.js",
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import m1 = require("ref/m1");
|
||||
import m2 = require("../outputdir_module_multifolder_ref/m2");
|
||||
export declare var a1: number;
|
||||
export declare class c1 {
|
||||
p1: number;
|
||||
}
|
||||
export declare var instance1: c1;
|
||||
export declare function f1(): c1;
|
||||
export declare var a2: typeof m1.m1_c1;
|
||||
export declare var a3: typeof m2.m2_c1;
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
test.ts(13,12): Exported variable 'a2' has or is using name 'm1.m1_c1' from private module 'm1'.
|
||||
test.ts(14,12): Exported variable 'a3' has or is using name 'm2.m2_c1' from private module 'm2'.
|
||||
+2
-1
@@ -23,6 +23,7 @@
|
||||
"../outputdir_module_multifolder_ref/m2.js",
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js"
|
||||
"test.js",
|
||||
"test.d.ts"
|
||||
]
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import m1 = require("ref/m1");
|
||||
import m2 = require("../outputdir_module_multifolder_ref/m2");
|
||||
export declare var a1: number;
|
||||
export declare class c1 {
|
||||
p1: number;
|
||||
}
|
||||
export declare var instance1: c1;
|
||||
export declare function f1(): c1;
|
||||
export declare var a2: typeof m1.m1_c1;
|
||||
export declare var a3: typeof m2.m2_c1;
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
test.ts(13,12): Exported variable 'a2' has or is using name 'm1.m1_c1' from private module 'm1'.
|
||||
test.ts(14,12): Exported variable 'a3' has or is using name 'm2.m2_c1' from private module 'm2'.
|
||||
+2
-1
@@ -24,6 +24,7 @@
|
||||
"outdir/simple/outputdir_module_multifolder_ref/m2.js",
|
||||
"outdir/simple/outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"outdir/simple/outputdir_module_multifolder/test.js.map",
|
||||
"outdir/simple/outputdir_module_multifolder/test.js"
|
||||
"outdir/simple/outputdir_module_multifolder/test.js",
|
||||
"outdir/simple/outputdir_module_multifolder/test.d.ts"
|
||||
]
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import m1 = require("ref/m1");
|
||||
import m2 = require("../outputdir_module_multifolder_ref/m2");
|
||||
export declare var a1: number;
|
||||
export declare class c1 {
|
||||
p1: number;
|
||||
}
|
||||
export declare var instance1: c1;
|
||||
export declare function f1(): c1;
|
||||
export declare var a2: typeof m1.m1_c1;
|
||||
export declare var a3: typeof m2.m2_c1;
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
test.ts(13,12): Exported variable 'a2' has or is using name 'm1.m1_c1' from private module 'm1'.
|
||||
test.ts(14,12): Exported variable 'a3' has or is using name 'm2.m2_c1' from private module 'm2'.
|
||||
+2
-1
@@ -24,6 +24,7 @@
|
||||
"outdir/simple/outputdir_module_multifolder_ref/m2.js",
|
||||
"outdir/simple/outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"outdir/simple/outputdir_module_multifolder/test.js.map",
|
||||
"outdir/simple/outputdir_module_multifolder/test.js"
|
||||
"outdir/simple/outputdir_module_multifolder/test.js",
|
||||
"outdir/simple/outputdir_module_multifolder/test.d.ts"
|
||||
]
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import m1 = require("ref/m1");
|
||||
import m2 = require("../outputdir_module_multifolder_ref/m2");
|
||||
export declare var a1: number;
|
||||
export declare class c1 {
|
||||
p1: number;
|
||||
}
|
||||
export declare var instance1: c1;
|
||||
export declare function f1(): c1;
|
||||
export declare var a2: typeof m1.m1_c1;
|
||||
export declare var a3: typeof m2.m2_c1;
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
test.ts(13,12): Exported variable 'a2' has or is using name 'm1.m1_c1' from private module 'm1'.
|
||||
test.ts(14,12): Exported variable 'a3' has or is using name 'm2.m2_c1' from private module 'm2'.
|
||||
+1
@@ -25,6 +25,7 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import m1 = require("ref/m1");
|
||||
import m2 = require("../outputdir_module_multifolder_ref/m2");
|
||||
export declare var a1: number;
|
||||
export declare class c1 {
|
||||
p1: number;
|
||||
}
|
||||
export declare var instance1: c1;
|
||||
export declare function f1(): c1;
|
||||
export declare var a2: typeof m1.m1_c1;
|
||||
export declare var a3: typeof m2.m2_c1;
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
test.ts(13,12): Exported variable 'a2' has or is using name 'm1.m1_c1' from private module 'm1'.
|
||||
test.ts(14,12): Exported variable 'a3' has or is using name 'm2.m2_c1' from private module 'm2'.
|
||||
+1
@@ -25,6 +25,7 @@
|
||||
"../outputdir_module_multifolder_ref/m2.d.ts",
|
||||
"test.js.map",
|
||||
"test.js",
|
||||
"test.d.ts",
|
||||
"bin/test.js.map",
|
||||
"bin/test.js",
|
||||
"bin/test.d.ts"
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import m1 = require("ref/m1");
|
||||
import m2 = require("../outputdir_module_multifolder_ref/m2");
|
||||
export declare var a1: number;
|
||||
export declare class c1 {
|
||||
p1: number;
|
||||
}
|
||||
export declare var instance1: c1;
|
||||
export declare function f1(): c1;
|
||||
export declare var a2: typeof m1.m1_c1;
|
||||
export declare var a3: typeof m2.m2_c1;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user