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

15 lines
301 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 : typeof p
p.thing();
>p.thing() : void
>p.thing : () => void
>p : typeof p
>thing : () => void