mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
//// [tests/cases/compiler/declarationEmitTopLevelNodeFromCrossFile.ts] ////
|
|
|
|
//// [a.ts]
|
|
export type X = string;
|
|
export const fn = { o: (a?: (X | undefined)[]) => {} };
|
|
|
|
//// [b.ts]
|
|
import {fn} from "./a";
|
|
export const m = {
|
|
/**
|
|
* leading doc for prop
|
|
*/
|
|
prop: 1
|
|
}
|
|
|
|
|
|
export const x = { p: fn };
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.fn = void 0;
|
|
exports.fn = { o: (a) => { } };
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.x = exports.m = void 0;
|
|
const a_1 = require("./a");
|
|
exports.m = {
|
|
/**
|
|
* leading doc for prop
|
|
*/
|
|
prop: 1
|
|
};
|
|
exports.x = { p: a_1.fn };
|
|
|
|
|
|
//// [a.d.ts]
|
|
export type X = string;
|
|
export declare const fn: {
|
|
o: (a?: (X | undefined)[]) => void;
|
|
};
|
|
//// [b.d.ts]
|
|
export declare const m: {
|
|
/**
|
|
* leading doc for prop
|
|
*/
|
|
prop: number;
|
|
};
|
|
export declare const x: {
|
|
p: {
|
|
o: (a?: (import("./a").X | undefined)[]) => void;
|
|
};
|
|
};
|