Improve error message for untyped import of scoped package (#22189)

This commit is contained in:
Andy
2018-02-26 10:38:54 -08:00
committed by GitHub
parent b31aa4e012
commit e4e4b17669
7 changed files with 53 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
// @noImplicitReferences: true
// @noImplicitAny: true
// @filename: /node_modules/@foo/bar/package.json
{ "name": "@foo/bar", "version": "1.2.3" }
// @filename: /node_modules/@foo/bar/index.js
This file is not processed.
// @filename: /a.ts
import * as foo from "@foo/bar";