* 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
18 lines
368 B
TypeScript
18 lines
368 B
TypeScript
// @noImplicitReferences: true
|
|
// @declaration: true
|
|
// @typeRoots: /types
|
|
// @traceResolution: true
|
|
// @currentDirectory: /
|
|
|
|
// @filename: /ref.d.ts
|
|
export interface $ { x }
|
|
|
|
// @filename: /types/lib/index.d.ts
|
|
declare let $: { x: number }
|
|
|
|
// @filename: /app.ts
|
|
/// <reference types="lib"/>
|
|
import {$} from "./ref";
|
|
export interface A {
|
|
x: $
|
|
}
|