1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
//// [tests/cases/compiler/caseInsensitiveFileSystemWithCapsImportTypeDeclarations.ts] ////
//// [index.ts]
import { TypeB } from './type-b';
export class Broken {
method () {
return { } as TypeB;
}
}
//// [type-b.ts]
import { Merge } from './types';
import { TypeA } from './type-a';
export type TypeB = Merge<TypeA, {
b: string;
}>;
//// [type-a.ts]
export type TypeA = {
a: string;
}
//// [types.ts]
export type Merge<T, U> = T & U;
//// [types.js]
"use strict";
exports.__esModule = true;
//// [type-a.js]
"use strict";
exports.__esModule = true;
//// [type-b.js]
"use strict";
exports.__esModule = true;
//// [index.js]
"use strict";
exports.__esModule = true;
var Broken = /** @class */ (function () {
function Broken() {
}
Broken.prototype.method = function () {
return {};
};
return Broken;
}());
exports.Broken = Broken;
//// [types.d.ts]
export declare type Merge<T, U> = T & U;
//// [type-a.d.ts]
export declare type TypeA = {
a: string;
};
//// [type-b.d.ts]
import { Merge } from './types';
import { TypeA } from './type-a';
export declare type TypeB = Merge<TypeA, {
b: string;
}>;
//// [index.d.ts]
export declare class Broken {
method(): import("./types").Merge<import("./type-a").TypeA, {
b: string;
}>;
}
|