* 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
405 B
TypeScript
19 lines
No EOL
405 B
TypeScript
// @noImplicitReferences: true
|
|
// @traceResolution: true
|
|
// @declaration: true
|
|
// @typeRoots: /types
|
|
// @currentDirectory: /
|
|
|
|
// local value shadows global - no need to add type reference directive
|
|
|
|
// @filename: /types/lib/index.d.ts
|
|
declare let $: { x: number }
|
|
|
|
|
|
// @filename: /app.ts
|
|
/// <reference types="lib"/>
|
|
|
|
export let $ = 1;
|
|
|
|
export let x: typeof $;
|
|
export let y = () => x |