Skip to main content Link Search Menu Expand Document (external link)

Registry overview

Added in v1.0.0


Table of contents


Tags

RxRegistry (class)

Signature

export declare class RxRegistry

Added in v1.0.0

constructors

make

Signature

export declare const make: (
  options?:
    | {
        readonly initialValues?: Iterable<readonly [Rx.Rx<any>, any]> | undefined
        readonly scheduleTask?: ((f: () => void) => void) | undefined
        readonly timeoutResolution?: number | undefined
        readonly defaultIdleTTL?: number | undefined
      }
    | undefined
) => Registry

Added in v1.0.0

models

Registry (interface)

Signature

export interface Registry {
  readonly [TypeId]: TypeId
  readonly get: <A>(rx: Rx.Rx<A>) => A
  readonly mount: <A>(rx: Rx.Rx<A>) => () => void
  readonly refresh: <A>(rx: Rx.Rx<A> & Rx.Refreshable) => void
  readonly set: <R, W>(rx: Rx.Writable<R, W>, value: W) => void
  readonly subscribe: <A>(
    rx: Rx.Rx<A>,
    f: (_: A) => void,
    options?: {
      readonly immediate?: boolean
    }
  ) => () => void
  readonly reset: () => void
  readonly dispose: () => void
}

Added in v1.0.0

type ids

TypeId

Signature

export declare const TypeId: typeof TypeId

Added in v1.0.0

TypeId (type alias)

Signature

export type TypeId = typeof TypeId

Added in v1.0.0