TypeScript/tests/baselines/reference/moduleResolutionWithModule(module=node12,moduleresolution=node).types

15 lines
276 B
Plaintext

=== tests/cases/compiler/node_modules/pkg/entrypoint.d.ts ===
export declare function thing(): void;
>thing : () => void
=== tests/cases/compiler/index.ts ===
import * as p from "pkg";
>p : any
p.thing();
>p.thing() : any
>p.thing : any
>p : any
>thing : any