mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Add completion test for partial generic object (#34559)
This commit is contained in:
committed by
Andrew Branch
parent
dd58bfc514
commit
9ff9c41a9a
@@ -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'
|
||||
},
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user