|
1 | 1 | /a.ts(2,25): error TS7016: Could not find a declaration file for module 'foo/sub'. '/node_modules/foo/sub.js' implicitly has an 'any' type.
|
2 | 2 | If the 'foo' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/foo`
|
3 | 3 | /a.ts(3,25): error TS7016: Could not find a declaration file for module 'bar/sub'. '/node_modules/bar/sub.js' implicitly has an 'any' type.
|
4 |
| - Try `npm install @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';` |
| 4 | + Try `npm install @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar/sub';` |
5 | 5 | /a.ts(5,30): error TS7016: Could not find a declaration file for module '@scope/foo/sub'. '/node_modules/@scope/foo/sub.js' implicitly has an 'any' type.
|
6 | 6 | If the '@scope/foo' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/scope__foo`
|
7 | 7 | /a.ts(6,30): error TS7016: Could not find a declaration file for module '@scope/bar/sub'. '/node_modules/@scope/bar/sub.js' implicitly has an 'any' type.
|
8 |
| - Try `npm install @types/scope__bar` if it exists or add a new declaration (.d.ts) file containing `declare module '@scope/bar';` |
| 8 | + Try `npm install @types/scope__bar` if it exists or add a new declaration (.d.ts) file containing `declare module '@scope/bar/sub';` |
9 | 9 |
|
10 | 10 |
|
11 | 11 | ==== /a.ts (4 errors) ====
|
|
17 | 17 | import * as barSub from "bar/sub";
|
18 | 18 | ~~~~~~~~~
|
19 | 19 | !!! error TS7016: Could not find a declaration file for module 'bar/sub'. '/node_modules/bar/sub.js' implicitly has an 'any' type.
|
20 |
| -!!! error TS7016: Try `npm install @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar';` |
| 20 | +!!! error TS7016: Try `npm install @types/bar` if it exists or add a new declaration (.d.ts) file containing `declare module 'bar/sub';` |
21 | 21 | import * as scopeFoo from "@scope/foo";
|
22 | 22 | import * as scopeFooSub from "@scope/foo/sub";
|
23 | 23 | ~~~~~~~~~~~~~~~~
|
|
26 | 26 | import * as scopeBarSub from "@scope/bar/sub";
|
27 | 27 | ~~~~~~~~~~~~~~~~
|
28 | 28 | !!! error TS7016: Could not find a declaration file for module '@scope/bar/sub'. '/node_modules/@scope/bar/sub.js' implicitly has an 'any' type.
|
29 |
| -!!! error TS7016: Try `npm install @types/scope__bar` if it exists or add a new declaration (.d.ts) file containing `declare module '@scope/bar';` |
| 29 | +!!! error TS7016: Try `npm install @types/scope__bar` if it exists or add a new declaration (.d.ts) file containing `declare module '@scope/bar/sub';` |
30 | 30 |
|
31 | 31 | ==== /node_modules/@types/foo/index.d.ts (0 errors) ====
|
32 | 32 | export const foo: number;
|
|
0 commit comments