TypeScript/tests/cases/fourslash/completionsWithOptionalProperties.ts

21 lines
425 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
// @strict: true
//// interface Options {
//// hello?: boolean;
//// world?: boolean;
//// }
//// declare function foo(options?: Options): void;
//// foo({
//// hello: true,
//// /**/
//// });
verify.completions({
marker: "",
2019-07-18 06:33:21 +02:00
exact: [
{ name: "world", kind: "property", kindModifiers: "optional", sortText: completion.SortText.OptionalMember }
]
});