mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
284 B
TypeScript
14 lines
284 B
TypeScript
//// [tests/cases/compiler/esmModeDeclarationFileWithExportAssignment.ts] ////
|
|
|
|
//// [other.d.mts]
|
|
declare function example(): 5;
|
|
export = example;
|
|
|
|
//// [main.mts]
|
|
import example from "./other.mjs";
|
|
example();
|
|
|
|
//// [main.mjs]
|
|
import example from "./other.mjs";
|
|
example();
|