TypeScript/tests/cases/fourslash/completionForQuotedPropertyInPropertyAssignment4.ts

22 lines
508 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts'/>
//// export interface ConfigFiles {
//// jspm: string;
//// 'jspm:browser': string;
//// }
//// function foo(c: ConfigFiles) {}
//// foo({
//// j/*0*/: "",
//// "[|/*1*/|]": "",
//// })
const replacementSpan = test.ranges()[0]
verify.completions(
{ marker: "0", exact: ["jspm", '"jspm:browser"'] },
{ marker: "1", exact: [
{ name: "jspm", replacementSpan },
{ name: "jspm:browser", replacementSpan }
] }
);