mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-26 10:43:51 -05:00
Enable compiler runner to report the errors from compiling generated declaration files
This commit is contained in:
@@ -33,3 +33,22 @@ declare module "SubModule" {
|
||||
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts]
|
||||
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
|
||||
export declare var x: SubModule.m.m3.c;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts (1 errors) ====
|
||||
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
|
||||
export declare var x: SubModule.m.m3.c;
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! Cannot find name 'SubModule'.
|
||||
|
||||
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts (0 errors) ====
|
||||
declare module "SubModule" {
|
||||
module m {
|
||||
module m3 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,3 +29,19 @@ interface Foo<T> {
|
||||
export = Foo;
|
||||
//// [declFileExportAssignmentOfGenericInterface_1.d.ts]
|
||||
export declare var x: a<a<string>>;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_1.d.ts (1 errors) ====
|
||||
export declare var x: a<a<string>>;
|
||||
~~~~~~~~~~~~
|
||||
!!! Cannot find name 'a'.
|
||||
|
||||
==== tests/cases/compiler/declFileExportAssignmentOfGenericInterface_0.d.ts (0 errors) ====
|
||||
interface Foo<T> {
|
||||
a: string;
|
||||
}
|
||||
export = Foo;
|
||||
|
||||
@@ -75,3 +75,32 @@ export = b;
|
||||
export import b1 = require("declFileExportImportChain_b1");
|
||||
//// [declFileExportImportChain_d.d.ts]
|
||||
export declare var x: m1.m2.c1;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain_d.d.ts (1 errors) ====
|
||||
export declare var x: m1.m2.c1;
|
||||
~~~~~~~~
|
||||
!!! Cannot find name 'm1'.
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain_a.d.ts (0 errors) ====
|
||||
declare module m1 {
|
||||
module m2 {
|
||||
class c1 {
|
||||
}
|
||||
}
|
||||
}
|
||||
export = m1;
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain_b.d.ts (0 errors) ====
|
||||
export import a = require("declFileExportImportChain_a");
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain_b1.d.ts (0 errors) ====
|
||||
import b = require("declFileExportImportChain_b");
|
||||
export = b;
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain_c.d.ts (0 errors) ====
|
||||
export import b1 = require("declFileExportImportChain_b1");
|
||||
|
||||
@@ -66,3 +66,29 @@ export = a;
|
||||
export import b = require("declFileExportImportChain2_b");
|
||||
//// [declFileExportImportChain2_d.d.ts]
|
||||
export declare var x: m1.m2.c1;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain2_d.d.ts (1 errors) ====
|
||||
export declare var x: m1.m2.c1;
|
||||
~~~~~~~~
|
||||
!!! Cannot find name 'm1'.
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain2_a.d.ts (0 errors) ====
|
||||
declare module m1 {
|
||||
module m2 {
|
||||
class c1 {
|
||||
}
|
||||
}
|
||||
}
|
||||
export = m1;
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain2_b.d.ts (0 errors) ====
|
||||
import a = require("declFileExportImportChain2_a");
|
||||
export = a;
|
||||
|
||||
==== tests/cases/compiler/declFileExportImportChain2_c.d.ts (0 errors) ====
|
||||
export import b = require("declFileExportImportChain2_b");
|
||||
|
||||
@@ -113,3 +113,45 @@ declare module templa.dom.mvc.composite {
|
||||
constructor();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileGenericType2.d.ts (6 errors) ====
|
||||
declare module templa.mvc {
|
||||
}
|
||||
declare module templa.mvc {
|
||||
}
|
||||
declare module templa.mvc {
|
||||
}
|
||||
declare module templa.mvc.composite {
|
||||
}
|
||||
declare module templa.dom.mvc {
|
||||
interface IElementController<ModelType extends templa.mvc.IModel> extends templa.mvc.IController<ModelType> {
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! Module 'templa.mvc' has no exported member 'IModel'.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! Module 'templa.mvc' has no exported member 'IController'.
|
||||
}
|
||||
}
|
||||
declare module templa.dom.mvc {
|
||||
class AbstractElementController<ModelType extends templa.mvc.IModel> extends templa.mvc.AbstractController<ModelType> implements IElementController<ModelType> {
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! Module 'templa.mvc' has no exported member 'IModel'.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! Module 'templa.mvc' has no exported member 'AbstractController'.
|
||||
constructor();
|
||||
}
|
||||
}
|
||||
declare module templa.dom.mvc.composite {
|
||||
class AbstractCompositeElementController<ModelType extends templa.mvc.composite.ICompositeControllerModel> extends AbstractElementController<ModelType> {
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! Module 'templa.mvc.composite' has no exported member 'ICompositeControllerModel'.
|
||||
_controllers: templa.mvc.IController<templa.mvc.IModel>[];
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! Module 'templa.mvc' has no exported member 'IController'.
|
||||
constructor();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,3 +57,38 @@ export declare var a: {
|
||||
test1: a1.connectModule;
|
||||
test2(): a1.connectModule;
|
||||
};
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.d.ts (3 errors) ====
|
||||
export declare var a: {
|
||||
(): a1.connectExport;
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! Cannot find name 'a1'.
|
||||
test1: a1.connectModule;
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! Cannot find name 'a1'.
|
||||
test2(): a1.connectModule;
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! Cannot find name 'a1'.
|
||||
};
|
||||
|
||||
==== tests/cases/compiler/declFileImportModuleWithExportAssignment_0.d.ts (0 errors) ====
|
||||
declare module m2 {
|
||||
interface connectModule {
|
||||
(res: any, req: any, next: any): void;
|
||||
}
|
||||
interface connectExport {
|
||||
use: (mod: connectModule) => connectExport;
|
||||
listen: (port: number) => void;
|
||||
}
|
||||
}
|
||||
declare var m2: {
|
||||
(): m2.connectExport;
|
||||
test1: m2.connectModule;
|
||||
test2(): m2.connectModule;
|
||||
};
|
||||
export = m2;
|
||||
|
||||
@@ -29,3 +29,19 @@ declare module 'mod1' {
|
||||
declare module 'moo' {
|
||||
var p: List<x.Foo>;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.d.ts (1 errors) ====
|
||||
declare class List<T> {
|
||||
}
|
||||
declare module 'mod1' {
|
||||
}
|
||||
declare module 'moo' {
|
||||
var p: List<x.Foo>;
|
||||
~~~~~
|
||||
!!! Cannot find name 'x'.
|
||||
}
|
||||
|
||||
@@ -46,3 +46,23 @@ declare module m2 {
|
||||
export import x = m.c;
|
||||
var d: x;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declFileInternalAliases.d.ts (1 errors) ====
|
||||
declare module m {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
declare module m1 {
|
||||
var d: x;
|
||||
~
|
||||
!!! Cannot find name 'x'.
|
||||
}
|
||||
declare module m2 {
|
||||
export import x = m.c;
|
||||
var d: x;
|
||||
}
|
||||
|
||||
@@ -82,3 +82,41 @@ declare module M {
|
||||
m3(): C;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declInput-2.d.ts (5 errors) ====
|
||||
declare module M {
|
||||
class E {
|
||||
}
|
||||
interface I1 {
|
||||
}
|
||||
class D {
|
||||
private c;
|
||||
m1: number;
|
||||
m2: string;
|
||||
m22: C;
|
||||
~
|
||||
!!! Cannot find name 'C'.
|
||||
m23: E;
|
||||
m24: I1;
|
||||
m25: I2;
|
||||
~~
|
||||
!!! Cannot find name 'I2'.
|
||||
m232(): E;
|
||||
m242(): I1;
|
||||
m252(): I2;
|
||||
~~
|
||||
!!! Cannot find name 'I2'.
|
||||
m26(i: I1): void;
|
||||
m262(i: I2): void;
|
||||
~~
|
||||
!!! Cannot find name 'I2'.
|
||||
m3(): C;
|
||||
~
|
||||
!!! Cannot find name 'C'.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,3 +193,67 @@ export declare module M.Q {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/declarationEmit_nameConflicts_0.d.ts (1 errors) ====
|
||||
export declare module M {
|
||||
function f(): void;
|
||||
class C {
|
||||
}
|
||||
module N {
|
||||
function g(): void;
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
export import a = M.f;
|
||||
export import b = M.C;
|
||||
export import c = N;
|
||||
export import d = im;
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! Cannot find name 'im'.
|
||||
}
|
||||
export declare module M.P {
|
||||
function f(): void;
|
||||
class C {
|
||||
}
|
||||
module N {
|
||||
function g(): void;
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
export import im = M.P.f;
|
||||
var a: () => void;
|
||||
var b: typeof M.C;
|
||||
var c: typeof M.N;
|
||||
var g: () => void;
|
||||
var d: typeof M.d;
|
||||
}
|
||||
export declare module M.Q {
|
||||
function f(): void;
|
||||
class C {
|
||||
}
|
||||
module N {
|
||||
function g(): void;
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
interface b extends M.C {
|
||||
}
|
||||
interface I extends M.N.I {
|
||||
}
|
||||
module c {
|
||||
interface I extends M.N.I {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
==== tests/cases/compiler/declarationEmit_nameConflicts_1.d.ts (0 errors) ====
|
||||
declare module f {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
export = f;
|
||||
|
||||
@@ -30,13 +30,10 @@
|
||||
var x = 42;
|
||||
export = x;
|
||||
|
||||
==== tests/cases/conformance/externalModules/expBoolean.ts (1 errors) ====
|
||||
==== tests/cases/conformance/externalModules/expBoolean.ts (0 errors) ====
|
||||
var x = true;
|
||||
export = x;
|
||||
~~~~~~~~~
|
||||
|
||||
|
||||
!!! Cannot compile external modules unless the '--module' flag is provided.
|
||||
==== tests/cases/conformance/externalModules/expArray.ts (0 errors) ====
|
||||
var x = [1,2];
|
||||
export = x;
|
||||
@@ -49,12 +46,9 @@
|
||||
var x;
|
||||
export = x;
|
||||
|
||||
==== tests/cases/conformance/externalModules/expGeneric.ts (1 errors) ====
|
||||
==== tests/cases/conformance/externalModules/expGeneric.ts (0 errors) ====
|
||||
function x<T>(a: T){
|
||||
~~~~
|
||||
return a;
|
||||
~~~~~~
|
||||
!!! Cannot compile external modules unless the '--module' flag is provided.
|
||||
}
|
||||
export = x;
|
||||
|
||||
@@ -47,3 +47,22 @@ declare class Widget1 {
|
||||
export import w = require('./w1');
|
||||
//// [consumer.d.ts]
|
||||
export declare function w(): Widget1;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/consumer.d.ts (1 errors) ====
|
||||
export declare function w(): Widget1;
|
||||
~~~~~~~
|
||||
!!! Cannot find name 'Widget1'.
|
||||
|
||||
==== tests/cases/compiler/w1.d.ts (0 errors) ====
|
||||
export = Widget1;
|
||||
declare class Widget1 {
|
||||
name: string;
|
||||
}
|
||||
|
||||
==== tests/cases/compiler/exporter.d.ts (0 errors) ====
|
||||
export import w = require('./w1');
|
||||
|
||||
@@ -39,3 +39,22 @@ interface Widget1 {
|
||||
export import w = require('./w1');
|
||||
//// [consumer.d.ts]
|
||||
export declare function w(): Widget1;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/consumer.d.ts (1 errors) ====
|
||||
export declare function w(): Widget1;
|
||||
~~~~~~~
|
||||
!!! Cannot find name 'Widget1'.
|
||||
|
||||
==== tests/cases/compiler/w1.d.ts (0 errors) ====
|
||||
export = Widget1;
|
||||
interface Widget1 {
|
||||
name: string;
|
||||
}
|
||||
|
||||
==== tests/cases/compiler/exporter.d.ts (0 errors) ====
|
||||
export import w = require('./w1');
|
||||
|
||||
@@ -9,3 +9,13 @@ var x = function somefn() {
|
||||
|
||||
//// [functionExpressionReturningItself.d.ts]
|
||||
declare var x: () => typeof somefn;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/functionExpressionReturningItself.d.ts (1 errors) ====
|
||||
declare var x: () => typeof somefn;
|
||||
~~~~~~
|
||||
!!! Cannot find name 'somefn'.
|
||||
|
||||
@@ -29,3 +29,19 @@ export declare class B {
|
||||
//// [importDeclarationUsedAsTypeQuery_1.d.ts]
|
||||
/// <reference path='importDeclarationUsedAsTypeQuery_require.d.ts' />
|
||||
export declare var x: typeof a;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/importDeclarationUsedAsTypeQuery_1.d.ts (1 errors) ====
|
||||
/// <reference path='importDeclarationUsedAsTypeQuery_require.d.ts' />
|
||||
export declare var x: typeof a;
|
||||
~
|
||||
!!! Cannot find name 'a'.
|
||||
|
||||
==== tests/cases/compiler/importDeclarationUsedAsTypeQuery_require.d.ts (0 errors) ====
|
||||
export declare class B {
|
||||
id: number;
|
||||
}
|
||||
|
||||
@@ -34,3 +34,19 @@ declare module a {
|
||||
declare module c {
|
||||
var x: b;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasClass.d.ts (1 errors) ====
|
||||
declare module a {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
var x: b;
|
||||
~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -50,3 +50,22 @@ export declare module m2 {
|
||||
var cProp: c;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasClassInsideLocalModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module x {
|
||||
class c {
|
||||
foo(a: number): number;
|
||||
}
|
||||
}
|
||||
export declare module m2 {
|
||||
module m3 {
|
||||
var cProp: c;
|
||||
~
|
||||
!!! Cannot find name 'c'.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,3 +36,18 @@ export declare module x {
|
||||
}
|
||||
}
|
||||
export declare var cProp: xc;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasClassInsideTopLevelModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module x {
|
||||
class c {
|
||||
foo(a: number): number;
|
||||
}
|
||||
}
|
||||
export declare var cProp: xc;
|
||||
~~
|
||||
!!! Cannot find name 'xc'.
|
||||
|
||||
@@ -41,3 +41,22 @@ declare module a {
|
||||
declare module c {
|
||||
var bVal: b;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasEnum.d.ts (1 errors) ====
|
||||
declare module a {
|
||||
enum weekend {
|
||||
Friday = 0,
|
||||
Saturday = 1,
|
||||
Sunday = 2,
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
var bVal: b;
|
||||
~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -41,3 +41,22 @@ export declare module a {
|
||||
export declare module c {
|
||||
var bVal: b;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasEnumInsideLocalModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
enum weekend {
|
||||
Friday = 0,
|
||||
Saturday = 1,
|
||||
Sunday = 2,
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
var bVal: b;
|
||||
~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -36,3 +36,20 @@ export declare module a {
|
||||
}
|
||||
}
|
||||
export declare var bVal: b;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasEnumInsideTopLevelModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
enum weekend {
|
||||
Friday = 0,
|
||||
Saturday = 1,
|
||||
Sunday = 2,
|
||||
}
|
||||
}
|
||||
export declare var bVal: b;
|
||||
~
|
||||
!!! Cannot find name 'b'.
|
||||
|
||||
@@ -41,3 +41,21 @@ declare module a {
|
||||
declare module c {
|
||||
var x: b.c;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasInitializedModule.d.ts (1 errors) ====
|
||||
declare module a {
|
||||
module b {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
var x: b.c;
|
||||
~~~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -41,3 +41,21 @@ export declare module a {
|
||||
export declare module c {
|
||||
var x: b.c;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasInitializedModuleInsideLocalModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
module b {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
var x: b.c;
|
||||
~~~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -36,3 +36,19 @@ export declare module a {
|
||||
}
|
||||
}
|
||||
export declare var x: b.c;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasInitializedModuleInsideTopLevelModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
module b {
|
||||
class c {
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare var x: b.c;
|
||||
~~~
|
||||
!!! Cannot find name 'b'.
|
||||
|
||||
@@ -25,3 +25,19 @@ declare module a {
|
||||
declare module c {
|
||||
var x: b;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasInterface.d.ts (1 errors) ====
|
||||
declare module a {
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
var x: b;
|
||||
~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -27,3 +27,19 @@ export declare module a {
|
||||
export declare module c {
|
||||
var x: b;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasInterfaceInsideLocalModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
var x: b;
|
||||
~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -20,3 +20,17 @@ export declare module a {
|
||||
}
|
||||
}
|
||||
export declare var x: b;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasInterfaceInsideTopLevelModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
interface I {
|
||||
}
|
||||
}
|
||||
export declare var x: b;
|
||||
~
|
||||
!!! Cannot find name 'b'.
|
||||
|
||||
@@ -32,3 +32,22 @@ declare module a {
|
||||
declare module c {
|
||||
var x: b.I;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasUninitializedModule.d.ts (1 errors) ====
|
||||
declare module a {
|
||||
module b {
|
||||
interface I {
|
||||
foo(): any;
|
||||
}
|
||||
}
|
||||
}
|
||||
declare module c {
|
||||
var x: b.I;
|
||||
~~~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -32,3 +32,22 @@ export declare module a {
|
||||
export declare module c {
|
||||
var x: b.I;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasUninitializedModuleInsideLocalModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
module b {
|
||||
interface I {
|
||||
foo(): any;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare module c {
|
||||
var x: b.I;
|
||||
~~~
|
||||
!!! Cannot find name 'b'.
|
||||
}
|
||||
|
||||
@@ -26,3 +26,20 @@ export declare module a {
|
||||
}
|
||||
}
|
||||
export declare var x: b.I;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/internalAliasUninitializedModuleInsideTopLevelModuleWithoutExport.d.ts (1 errors) ====
|
||||
export declare module a {
|
||||
module b {
|
||||
interface I {
|
||||
foo(): any;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare var x: b.I;
|
||||
~~~
|
||||
!!! Cannot find name 'b'.
|
||||
|
||||
@@ -49,3 +49,28 @@ declare class MainModule {
|
||||
constructor();
|
||||
}
|
||||
export = MainModule;
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/missingImportAfterModuleImport_1.d.ts (1 errors) ====
|
||||
/// <reference path='missingImportAfterModuleImport_0.d.ts' />
|
||||
declare class MainModule {
|
||||
SubModule: SubModule;
|
||||
~~~~~~~~~
|
||||
!!! Cannot find name 'SubModule'.
|
||||
constructor();
|
||||
}
|
||||
export = MainModule;
|
||||
|
||||
==== tests/cases/compiler/missingImportAfterModuleImport_0.d.ts (0 errors) ====
|
||||
declare module "SubModule" {
|
||||
class SubModule {
|
||||
static StaticVar: number;
|
||||
InstanceVar: number;
|
||||
constructor();
|
||||
}
|
||||
export = SubModule;
|
||||
}
|
||||
|
||||
@@ -23,3 +23,15 @@ var Outer;
|
||||
declare module Outer {
|
||||
var f: typeof Inner;
|
||||
}
|
||||
|
||||
|
||||
//// [DtsFileErrors]
|
||||
|
||||
|
||||
==== tests/cases/compiler/privacyCheckTypeOfInvisibleModuleNoError.d.ts (1 errors) ====
|
||||
declare module Outer {
|
||||
var f: typeof Inner;
|
||||
~~~~~
|
||||
!!! Cannot find name 'Inner'.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user