TypeScript/tests/cases/fourslash/completionsWithOptionalProperties.ts
2019-07-18 12:33:21 +08:00

21 lines
425 B
TypeScript

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