@tempots/dom

Value variable

Signature:

Value: {
    map: <T, U>(value: Value<T>, fn: (value: T) => U) => Value<U>;
    toSignal: <T>(value: Value<T>, equals?: (a: T, b: T) => boolean) => Signal<T>;
    maybeToSignal: <T>(value: Value<T> | undefined | null, equals?: (a: T, b: T) => boolean) => Signal<T> | undefined;
    get: <T>(value: Value<T>) => T;
    on: <T>(value: Value<T>, listener: (value: T) => void) => (() => void);
    dispose: <T>(value: Value<T>) => void;
    deriveProp: <T>(value: Value<T>, { autoDisposeProp, equals, }?: {
        autoDisposeProp?: boolean;
        equals?: (a: T, b: T) => boolean;
    }) => Prop<T>;
}