160 lines
2.4 KiB
Plaintext
160 lines
2.4 KiB
Plaintext
=== tests/cases/compiler/collisionExportsRequireAndAmbientModule_externalmodule.ts ===
|
|
export declare module require {
|
|
>require : typeof require
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
export function foo(): require.I {
|
|
>foo : () => require.I
|
|
>require : unknown
|
|
>I : require.I
|
|
|
|
return null;
|
|
}
|
|
export declare module exports {
|
|
>exports : typeof exports
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
export function foo2(): exports.I {
|
|
>foo2 : () => exports.I
|
|
>exports : unknown
|
|
>I : exports.I
|
|
|
|
return null;
|
|
}
|
|
declare module m1 {
|
|
>m1 : typeof m1
|
|
|
|
module require {
|
|
>require : typeof require
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
module exports {
|
|
>exports : typeof exports
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
}
|
|
module m2 {
|
|
>m2 : typeof m2
|
|
|
|
export declare module require {
|
|
>require : typeof require
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
export declare module exports {
|
|
>exports : typeof exports
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
var a = 10;
|
|
>a : number
|
|
}
|
|
|
|
=== tests/cases/compiler/collisionExportsRequireAndAmbientModule_globalFile.ts ===
|
|
declare module require {
|
|
>require : typeof require
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
declare module exports {
|
|
>exports : typeof exports
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
declare module m3 {
|
|
>m3 : typeof m3
|
|
|
|
module require {
|
|
>require : typeof require
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
module exports {
|
|
>exports : typeof exports
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
}
|
|
module m4 {
|
|
>m4 : typeof m4
|
|
|
|
export declare module require {
|
|
>require : typeof require
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
export declare module exports {
|
|
>exports : typeof exports
|
|
|
|
export interface I {
|
|
>I : I
|
|
}
|
|
export class C {
|
|
>C : C
|
|
}
|
|
}
|
|
|
|
var a = 10;
|
|
>a : number
|
|
}
|
|
|