Skip to content

Commit 5c06b1b

Browse files
authored
Improve typing by hiding auto-passed properties in yielded components (#1043)
1 parent 8c55e77 commit 5c06b1b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/components/basic-dropdown.gts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,29 @@ export interface BasicDropdownDefaultBlock<
4747
Omit<BasicDropdownTriggerSignature<TriggerHtmlTag>, 'Args'> & {
4848
Args: Omit<
4949
BasicDropdownTriggerSignature<TriggerHtmlTag>['Args'],
50-
'htmlTag'
50+
'htmlTag' | 'dropdown' | 'hPosition' | 'vPosition' | 'renderInPlace'
5151
>;
5252
}
5353
>;
5454
Content: ComponentLike<
5555
Omit<BasicDropdownContentSignature<ContentHtmlTag>, 'Args'> & {
5656
Args: Omit<
5757
BasicDropdownContentSignature<ContentHtmlTag>['Args'],
58-
'htmlTag'
58+
| 'htmlTag'
59+
| 'dropdown'
60+
| 'hPosition'
61+
| 'vPosition'
62+
| 'renderInPlace'
63+
| 'destination'
64+
| 'destinationElement'
65+
| 'top'
66+
| 'left'
67+
| 'right'
68+
| 'width'
69+
| 'height'
70+
| 'otherStyles'
71+
| 'preventScroll'
72+
| 'rootEventType'
5973
>;
6074
}
6175
>;

0 commit comments

Comments
 (0)