mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
394 B
TypeScript
19 lines
394 B
TypeScript
//// [tests/cases/compiler/allowSyntheticDefaultImports10.ts] ////
|
|
|
|
//// [b.d.ts]
|
|
export function foo();
|
|
|
|
export function bar();
|
|
|
|
//// [a.ts]
|
|
import Foo = require("./b");
|
|
Foo.default.bar();
|
|
Foo.default.default.foo();
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const Foo = require("./b");
|
|
Foo.default.bar();
|
|
Foo.default.default.foo();
|