toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-preact-signals-core
/
preact.signals.core
/
ReadonlySignal
Readonly
Signal
sealed
external
interface
ReadonlySignal
<
out
T
>
(
source
)
An interface for read-only signals.
Inheritors
Signal
Members
Properties
brand
Link copied to clipboard
abstract
val
brand
:
BRAND_SYMBOL
value
Link copied to clipboard
abstract
val
value
:
T
Functions
get
Value
Link copied to clipboard
open
inline operator
fun
getValue
(
thisRef
:
Nothing
?
,
property
:
KProperty
<
*
>
)
:
T
peek
Link copied to clipboard
abstract
fun
peek
(
)
:
T
subscribe
Link copied to clipboard
abstract
fun
subscribe
(
fn
:
(
value
:
T
)
->
Unit
)
:
(
)
->
Unit
to
JSON
Link copied to clipboard
abstract
fun
toJSON
(
)
:
T
value
Of
Link copied to clipboard
abstract
fun
valueOf
(
)
:
T