TypeScript/tests/cases/compiler/typeReferenceDirectives4.ts
Yui 10b36abc8f [Release-2.0] Fix 9662: Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors (#9867)
* 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
2016-08-04 07:43:54 -07:00

21 lines
No EOL
437 B
TypeScript

// @noImplicitReferences: true
// @traceResolution: true
// @declaration: true
// @typeRoots: /types
// @currentDirectory: /
// $ comes from d.ts file - no need to add type reference directive
// @filename: /ref.d.ts
interface $ { x }
// @filename: /types/lib/index.d.ts
declare let $: { x: number }
// @filename: /app.ts
/// <reference path="./ref.d.ts"/>
/// <reference types="lib"/>
let x: $;
let y = () => x