mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
700 B
TypeScript
33 lines
700 B
TypeScript
//// [tests/cases/compiler/declarationEmitExportAssignment.ts] ////
|
|
|
|
//// [utils.ts]
|
|
export function foo() { }
|
|
export function bar() { }
|
|
export interface Buzz { }
|
|
|
|
//// [index.ts]
|
|
import {foo} from "./utils";
|
|
export = foo;
|
|
|
|
//// [utils.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.foo = foo;
|
|
exports.bar = bar;
|
|
function foo() { }
|
|
function bar() { }
|
|
//// [index.js]
|
|
"use strict";
|
|
const utils_1 = require("./utils");
|
|
module.exports = utils_1.foo;
|
|
|
|
|
|
//// [utils.d.ts]
|
|
export declare function foo(): void;
|
|
export declare function bar(): void;
|
|
export interface Buzz {
|
|
}
|
|
//// [index.d.ts]
|
|
import { foo } from "./utils";
|
|
export = foo;
|