* Change the shape of the shim layer to support getAutomaticTypeDirectives * Change the key for looking up automatic type-directives * Update baselines from change look-up name of type-directives * Add @currentDirectory into the test * Update baselines * Fix linting error * Address PR: fix spelling mistake * Instead of return path of the type directive names just return type directive names
19 lines
No EOL
364 B
TypeScript
19 lines
No EOL
364 B
TypeScript
// @noImplicitReferences: true
|
|
// @declaration: true
|
|
// @typeRoots: /types
|
|
// @traceResolution: true
|
|
// @types: lib
|
|
// @currentDirectory: /
|
|
|
|
// @filename: /types/lib/index.d.ts
|
|
|
|
interface Lib { x }
|
|
|
|
// @filename: /mod1.ts
|
|
|
|
export function foo(): Lib { return {x: 1} }
|
|
|
|
// @filename: /mod2.ts
|
|
|
|
import {foo} from "./mod1";
|
|
export const bar = foo(); |