Skip to content

feat: expose type aliases for custom string union property types#1656

Merged
rkaraivanov merged 7 commits intomasterfrom
dpetev/union-types
Apr 15, 2025
Merged

feat: expose type aliases for custom string union property types#1656
rkaraivanov merged 7 commits intomasterfrom
dpetev/union-types

Conversation

@damyanpetev
Copy link
Member

@damyanpetev damyanpetev commented Apr 11, 2025

I've merged types into more general ones for reuse only where I feel somewhat certain - e.g. PickerMode should be valid for Date Range Picker and PopoverScrollStrategy possibly for a tooltip. The rest I've stuck to component-specific types if not enough is shared or is used semantically differently.
Also generally all naming feedback is welcome, choosing names is tiresome :D

Skipped types we generally replicate native DOM API - button type/target and textarea autocapitalize/inputMode/wrap, since those are subject to change from the DOM and we merely pass them along.


PS: This almost certainly degrades the VS Code custom data autocomplete since the type is not inlined now and the plugin doesn't read the expanded type. But that seems to be an issue with the plugin itself taking most types it doesn't recognize as value options, e.g. from official version:
image
image

@rkaraivanov rkaraivanov merged commit 60d6836 into master Apr 15, 2025
5 checks passed
@rkaraivanov rkaraivanov deleted the dpetev/union-types branch April 15, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants