mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
//// [tests/cases/compiler/esModuleInteropImportTSLibHasImport.ts] ////
|
|
|
|
=== types.d.ts ===
|
|
declare module "tslib" { export const __exportStar: any; export const __importDefault: any; export const __importStar: any; }
|
|
>"tslib" : Symbol("tslib", Decl(types.d.ts, 0, 0))
|
|
>__exportStar : Symbol(__exportStar, Decl(types.d.ts, 0, 37))
|
|
>__importDefault : Symbol(__importDefault, Decl(types.d.ts, 0, 69))
|
|
>__importStar : Symbol(__importStar, Decl(types.d.ts, 0, 104))
|
|
|
|
=== utils/username.ts ===
|
|
export const username = () => 'username';
|
|
>username : Symbol(username, Decl(username.ts, 0, 12))
|
|
|
|
=== utils/index.ts ===
|
|
|
|
export * from './username';
|
|
=== hello.ts ===
|
|
const sayHello = (name?: string) => void (`Hello, ${name}!`);
|
|
>sayHello : Symbol(sayHello, Decl(hello.ts, 0, 5))
|
|
>name : Symbol(name, Decl(hello.ts, 0, 18))
|
|
>name : Symbol(name, Decl(hello.ts, 0, 18))
|
|
|
|
export default sayHello;
|
|
>sayHello : Symbol(sayHello, Decl(hello.ts, 0, 5))
|
|
|
|
=== index.ts ===
|
|
import sayHello from "./hello";
|
|
>sayHello : Symbol(sayHello, Decl(index.ts, 0, 6))
|
|
|
|
import { username } from './utils';
|
|
>username : Symbol(username, Decl(index.ts, 1, 8))
|
|
|
|
sayHello(username());
|
|
>sayHello : Symbol(sayHello, Decl(index.ts, 0, 6))
|
|
>username : Symbol(username, Decl(index.ts, 1, 8))
|
|
|