toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-preact-signals-core
/
preact.signals.core
/
Signal
Signal
external
class
Signal
<
T
>
(
var
value
:
T
=
definedExternally
)
:
ReadonlySignal
<
T
>
(
source
)
The base class for plain and computed signals.
Members
Constructors
Signal
Link copied to clipboard
constructor
(
value
:
T
=
definedExternally
)
Properties
brand
Link copied to clipboard
open
override
val
brand
:
BRAND_SYMBOL
value
Link copied to clipboard
open
override
var
value
:
T
Functions
get
Value
Link copied to clipboard
open
inline operator
fun
getValue
(
thisRef
:
Nothing
?
,
property
:
KProperty
<
*
>
)
:
T
peek
Link copied to clipboard
open
override
fun
peek
(
)
:
T
set
Value
Link copied to clipboard
inline operator
fun
setValue
(
thisRef
:
Nothing
?
,
property
:
KProperty
<
*
>
,
value
:
T
)
subscribe
Link copied to clipboard
open
override
fun
subscribe
(
fn
:
(
value
:
T
)
->
Unit
)
:
(
)
->
Unit
to
JSON
Link copied to clipboard
open
override
fun
toJSON
(
)
:
T
value
Of
Link copied to clipboard
open
override
fun
valueOf
(
)
:
T