2017-10-18 00:04:09 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-10-23 22:36:36 +02:00
|
|
|
// @moduleResolution: node
|
|
|
|
// @noImplicitAny: true
|
|
|
|
|
|
|
|
// @Filename: /node_modules/abs/index.js
|
|
|
|
////not read
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
2018-04-05 21:33:00 +02:00
|
|
|
////import * as abs from "abs";
|
|
|
|
////abs;
|
2017-10-18 00:04:09 +02:00
|
|
|
|
2018-07-11 19:06:08 +02:00
|
|
|
// @Filename: /b.ts
|
|
|
|
////const x: import("abs").T = 0;
|
|
|
|
|
2017-10-18 00:04:09 +02:00
|
|
|
test.setTypesRegistry({
|
|
|
|
"abs": undefined,
|
|
|
|
});
|
|
|
|
|
2018-07-11 19:06:08 +02:00
|
|
|
for (const file of ["/a.ts", "/b.ts"]) {
|
|
|
|
goTo.file(file);
|
|
|
|
verify.codeFixAvailable([{
|
|
|
|
description: "Install '@types/abs'",
|
|
|
|
commands: [{
|
|
|
|
type: "install package",
|
|
|
|
file,
|
|
|
|
packageName: "@types/abs",
|
|
|
|
}],
|
|
|
|
}]);
|
|
|
|
}
|