Skip to content

Commit

Permalink
Use web.html.HtmlTagName<*>
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialist7 committed Feb 12, 2024
1 parent 1424f7e commit 45ca2ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/karakum/mui/KotlinType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private val STANDARD_TYPE_MAP = mapOf(

"Date" to "kotlin.js.Date",

"keyof HTMLElementTagNameMap" to "String /* keyof HTMLElementTagNameMap */",
"keyof HTMLElementTagNameMap" to "web.html.HtmlTagName<*>",

"readonly CalendarPickerView[]" to "ReadonlyArray<CalendarPickerView>",
"Breakpoint[]" to "ReadonlyArray<Breakpoint>",
Expand Down
2 changes: 1 addition & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/base/Button.types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ external interface ButtonOwnProps :
* The HTML element that is ultimately rendered, for example 'button' or 'a'
* @default 'button'
*/
override var rootElementName: String? /* keyof HTMLElementTagNameMap */
override var rootElementName: web.html.HtmlTagName<*>?
}

external interface ButtonSlots {
Expand Down
2 changes: 1 addition & 1 deletion mui-kotlin/src/jsMain/kotlin/mui/base/useButton.types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ external interface UseButtonParameters {
* The HTML element, e.g.'button', 'a' etc
* @default ''
*/
var rootElementName: String? /* keyof HTMLElementTagNameMap */
var rootElementName: web.html.HtmlTagName<*>?
}

external interface UseButtonRootSlotOwnProps : react.Props {
Expand Down

0 comments on commit 45ca2ea

Please sign in to comment.