26 lines
609 B
TypeScript
26 lines
609 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// @Filename: /node_modules/a/index.d.ts
|
|
////declare namespace core {
|
|
//// const foo: number;
|
|
////}
|
|
////declare module "a" {
|
|
//// export = core;
|
|
////}
|
|
////declare module "a/alias" {
|
|
//// export = core;
|
|
////}
|
|
|
|
// @Filename: /user.ts
|
|
////import * as a from "a";
|
|
/////**/foo;
|
|
|
|
verify.completions({
|
|
marker: "",
|
|
// Tester will assert that it is only included once
|
|
includes: [{ name: "foo", source: "a", hasAction: true, sortText: completion.SortText.AutoImportSuggestions }],
|
|
preferences: {
|
|
includeCompletionsForModuleExports: true,
|
|
}
|
|
});
|