Type Alias Cell<T>

Cell: {
    get(): T;
    set(value: T): void;
    subscribe(
        callback: (value: T) => void,
        notifyImmediately?: boolean,
    ): () => void;
}

Type Parameters

  • T

Type declaration

  • get:function
  • set:function
  • subscribe:function
    • Parameters

      • callback: (value: T) => void
      • OptionalnotifyImmediately: boolean

      Returns () => void