21 lines
543 B
TypeScript
21 lines
543 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @Filename: /node_modules/@types/foo/index.d.ts
|
|
////
|
|
|
|
// @Filename: /node_modules/@types/foo/bar.d.ts
|
|
////
|
|
|
|
// @Filename: /a.ts
|
|
////import {} from "unrelated//*0*/";
|
|
////import {} from "foo//*1*/";
|
|
/////// <reference types="foo//*2*/" />
|
|
|
|
verify.completions(
|
|
{ marker: "0", exact: [], isNewIdentifierLocation: true },
|
|
{
|
|
marker: ["1", "2"],
|
|
exact: ["bar", "index"].map(name => ({ name, kind: "script", kindModifiers: ".d.ts" })),
|
|
isNewIdentifierLocation: true,
|
|
},
|
|
);
|