TypeScript/tests/cases/conformance/moduleResolution/typesVersions.justIndex.ts
Andy 9bdd6a3b55
Support loading "index.d.ts" using "typesVersions" without "types", "typings", or "main" (#27514)
* Support loading "index.d.ts" using "typesVersions" without "types", "typings", or "main"

* Update baseline
2018-10-03 11:44:16 -07:00

18 lines
292 B
TypeScript

// @baseUrl: /
// @traceResolution: true
// @target: esnext
// @module: commonjs
// @filename: /a/package.json
{
"typesVersions": {
">=3.1.0-0": { "*" : ["ts3.1/*"] }
}
}
// @filename: /a/ts3.1/index.d.ts
export const a = 0;
// @filename: /b/user.ts
import { a } from "a";