jsMain.react.router.dom.SearchParamsInstance.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-react-router-dom-legacy-js
Show all versions of kotlin-react-router-dom-legacy-js
Kotlin wrapper for React Router DOM library
// Automatically generated - do not modify!
@file:Suppress(
"NOTHING_TO_INLINE",
)
package react.router.dom
import js.core.jso
import react.router.NavigateOptions
import web.url.URLSearchParams
import kotlin.reflect.KProperty
// TODO: make external in IR
class SearchParamsSetter
private constructor() {
inline operator fun invoke(
value: URLSearchParams,
) {
asDynamic()(value)
}
inline operator fun invoke(
value: URLSearchParams,
options: NavigateOptions,
) {
asDynamic()(value, options)
}
inline operator fun invoke(
value: URLSearchParams,
block: NavigateOptions.() -> Unit,
) {
invoke(value, options = jso(block))
}
}
// TODO: make external in IR
class SearchParamsInstance
private constructor() {
inline operator fun component1(): URLSearchParams = asDynamic()[0]
inline operator fun component2(): SearchParamsSetter = asDynamic()[1]
inline operator fun getValue(
thisRef: Nothing?,
property: KProperty<*>,
): URLSearchParams =
asDynamic()[0]
inline operator fun setValue(
thisRef: Nothing?,
property: KProperty<*>,
value: URLSearchParams,
) {
asDynamic()[1](value)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy