Add completion test for partial generic object (#34559)

This commit is contained in:
Tim Suchanek 2019-10-18 17:59:49 +02:00 committed by Andrew Branch
parent dd58bfc514
commit 9ff9c41a9a

View file

@ -0,0 +1,19 @@
/// <reference path="fourslash.ts" />
// @strict: true
//// interface MyOptions {
//// hello?: boolean;
//// world?: boolean;
//// }
//// declare function bar<T extends MyOptions>(options?: Partial<T>): void;
//// bar({ hello: true, /*1*/ });
verify.completions({
marker: '1',
includes: [
{
sortText: completion.SortText.OptionalMember,
name: 'world'
},
]
})