TypeScript/tests/baselines/reference/moduleResolutionWithExtensions_withPaths.types
Sheetal Nandi d36df0dda5
Try file if matched pattern specifies the extension instead of all the time (#42246)
* Test case for path mapping with extension

* Try file if matched pattern specifies the extension instead of all the time
Fixes #39743
2021-01-08 12:03:29 -08:00

27 lines
537 B
Plaintext

=== /node_modules/foo/lib/test.d.ts ===
export declare function test(): void;
>test : () => void
=== /relative.d.ts ===
export declare function relative(): void;
>relative : () => void
=== /test.ts ===
import { test } from "foo/test.js";
>test : () => void
import { test as test2 } from "foo/test";
>test : () => void
>test2 : () => void
import { relative } from "./relative.js";
>relative : () => void
import { relative as relative2 } from "./relative";
>relative : () => void
>relative2 : () => void