2
2
//@Filename : file.tsx
3
3
////interface NestedInterface {
4
4
//// Foo: NestedInterface;
5
- //// (props: {className?: string}): any;
5
+ //// (props: {className?: string, onClick?: () => void }): any;
6
6
//// }
7
7
////
8
8
////declare const Foo: NestedInterface;
52
52
////function fn11() {
53
53
//// return <Foo something cla/*11*/ />
54
54
//// }
55
+ ////function fn12() {
56
+ //// return <Foo something={false} cla/*12*/ />
57
+ //// }
58
+ ////function fn13() {
59
+ //// return <Foo something={false} /*13*/ foo />
60
+ //// }
61
+ ////function fn14() {
62
+ //// return <Foo something={false} cla/*14*/ foo />
63
+ //// }
64
+ ////function fn15() {
65
+ //// return <Foo onC/*15*/="" />
66
+ //// }
67
+ ////function fn16() {
68
+ //// return <Foo something={false} onC/*16*/="" foo />
69
+ //// }
55
70
56
71
var preferences : FourSlashInterface . UserPreferences = {
57
72
jsxAttributeCompletionStyle : "braces" ,
58
73
includeCompletionsWithSnippetText : true ,
59
74
includeCompletionsWithInsertText : true ,
60
- } ;
75
+ } ;
61
76
62
77
verify . completions (
63
78
{ marker : "1" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
@@ -71,4 +86,9 @@ verify.completions(
71
86
{ marker : "9" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
72
87
{ marker : "10" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
73
88
{ marker : "11" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
89
+ { marker : "12" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
90
+ { marker : "13" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
91
+ { marker : "14" , preferences, includes : { name : "className" , insertText : "className={$1}" , text : "(property) className?: string" , isSnippet : true , sortText : completion . SortText . OptionalMember } } ,
92
+ { marker : "15" , preferences, includes : { name : "onClick" , insertText : undefined , text : "(property) onClick?: () => void" , isSnippet : undefined , sortText : completion . SortText . OptionalMember } } ,
93
+ { marker : "16" , preferences, includes : { name : "onClick" , insertText : undefined , text : "(property) onClick?: () => void" , isSnippet : undefined , sortText : completion . SortText . OptionalMember } } ,
74
94
)
0 commit comments