TypeScript/tests/baselines/reference/defaultDeclarationEmitDefaultImport.types

21 lines
513 B
Plaintext

=== tests/cases/compiler/root.ts ===
export function getSomething(): Something { return null as any }
>getSomething : () => Something
>Something : Something
>null as any : any
>null : null
export default class Something {}
>Something : Something
=== tests/cases/compiler/main.ts ===
import Thing, { getSomething } from "./root";
>Thing : typeof Thing
>getSomething : () => Thing
export const instance = getSomething();
>instance : Thing
>getSomething() : Thing
>getSomething : () => Thing