16 lines
408 B
TypeScript
16 lines
408 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
// @allowJs: true
|
|
|
|
// @Filename: mod.js
|
|
//// function foo() { return {a: true}; }
|
|
//// module.exports = foo();
|
|
|
|
// @Filename: app.js
|
|
//// import * as mod from "./mod"
|
|
//// mod./**/
|
|
|
|
verify.completions({
|
|
marker: "", exact: [
|
|
{ name: "a", kind: "property" },
|
|
{ name: "mod", kind: "warning", sortText: completion.SortText.JavascriptIdentifiers }]
|
|
});
|