d054621477
unmangled package name where appropriate. Add a test case for an untyped sub-module of a scoped package with typings. The other diagnostic message is covered by existing tests; I guess no one looked at the baselines closely enough. Fixes #23999.
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
// @noImplicitReferences: true
|
|
// @strict: true
|
|
|
|
// @Filename: /node_modules/@types/foo/index.d.ts
|
|
export const foo: number;
|
|
|
|
// @Filename: /node_modules/@types/foo/package.json
|
|
{ "name": "@types/foo", "version": "1.2.3" }
|
|
|
|
// @Filename: /node_modules/foo/sub.js
|
|
const x = 0;
|
|
|
|
// @Filename: /node_modules/foo/package.json
|
|
{ "name": "foo", "version": "1.2.3" }
|
|
|
|
// @Filename: /node_modules/bar/sub.js
|
|
const x = 0;
|
|
|
|
// @Filename: /node_modules/bar/package.json
|
|
{ "name": "bar", "version": "1.2.3" }
|
|
|
|
// @Filename: /node_modules/@types/scope__foo/index.d.ts
|
|
export const foo: number;
|
|
|
|
// @Filename: /node_modules/@types/scope__foo/package.json
|
|
{ "name": "@types/scope__foo", "version": "1.2.3" }
|
|
|
|
// @Filename: /node_modules/@scope/foo/sub.js
|
|
const x = 0;
|
|
|
|
// @Filename: /node_modules/@scope/foo/package.json
|
|
{ "name": "@scope/foo", "version": "1.2.3" }
|
|
|
|
// @Filename: /node_modules/@scope/bar/sub.js
|
|
const x = 0;
|
|
|
|
// @Filename: /node_modules/@scope/bar/package.json
|
|
{ "name": "@scope/bar", "version": "1.2.3" }
|
|
|
|
// @Filename: /a.ts
|
|
import * as foo from "foo";
|
|
import * as fooSub from "foo/sub";
|
|
import * as barSub from "bar/sub";
|
|
import * as scopeFoo from "@scope/foo";
|
|
import * as scopeFooSub from "@scope/foo/sub";
|
|
import * as scopeBarSub from "@scope/bar/sub";
|