TypeScript/tests/baselines/reference/pathMappingBasedModuleResolution6_classic.types

25 lines
556 B
Plaintext

=== c:/root/src/file1.ts ===
import {x} from "./project/file3";
>x : number
declare function use(x: string);
>use : (x: string) => any
>x : string
use(x.toExponential());
>use(x.toExponential()) : any
>use : (x: string) => any
>x.toExponential() : string
>x.toExponential : (fractionDigits?: number) => string
>x : number
>toExponential : (fractionDigits?: number) => string
=== c:/root/src/file2.d.ts ===
export let x: number;
>x : number
=== c:/root/generated/src/project/file3.ts ===
export {x} from "../file2";
>x : number