2018-08-28 22:03:24 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: a/f1.ts
|
|
|
|
//// [|foo/*0*/();|]
|
|
|
|
|
|
|
|
// @Filename: types/random/index.ts
|
|
|
|
//// export function foo() {};
|
|
|
|
|
|
|
|
// @Filename: tsconfig.json
|
|
|
|
//// {
|
|
|
|
//// "compilerOptions": {
|
|
|
|
//// "baseUrl": ".",
|
|
|
|
//// "typeRoots": [
|
|
|
|
//// "./types"
|
|
|
|
//// ]
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
|
2018-08-30 01:18:56 +02:00
|
|
|
// "typeRoots" does not affect module resolution, though "baseUrl" does. Importing from "random" would be a compile error.
|
2018-08-28 22:03:24 +02:00
|
|
|
verify.importFixAtPosition([
|
|
|
|
`import { foo } from "types/random";
|
|
|
|
|
|
|
|
foo();`,
|
|
|
|
]);
|