@tempots/dom
Prop class
Represents a property signal that holds a value of type T. It extends the Signal
class.
Signature:
declare class Prop extends Signal
Extends: Signal
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
|
|
Returns a | |
|
Checks if a value is a Prop. | ||
|
|
Creates an isomorphism for the Signal. An isomorphism is a pair of functions that convert values between two types, along with an equality function to compare values of the second type. | |
|
(fn: (acc: T, value: A) => T, ...effects: ReducerEffect |
Creates a reducer function that combines the provided reducer function and effects. | |
|
(value: T) => void |
Changes the value of the property and notifies its listeners. | |
|
(fn: (value: T) => T) => void |
Updates the value of the signal by applying the provided function to the current value. | |
T |
Access for the current value of the property. |