Skip to main content

makeController

Callable

  • makeController<T>(valueStore: MutableStore<T>, subscriberStore: ObservableSubscriberStore<T>): { complete: (...arguments_: []) => void; error: (...arguments_: [error: Error]) => void; next: (...arguments_: [value: T]) => void }

  • Type parameters

    • T

    Parameters

    Returns { complete: (...arguments_: []) => void; error: (...arguments_: [error: Error]) => void; next: (...arguments_: [value: T]) => void }

    • complete: (...arguments_: []) => void
        • (...arguments_: []): void
        • Parameters

          • rest...arguments_: []

          Returns void

    • error: (...arguments_: [error: Error]) => void
        • (...arguments_: [error: Error]): void
        • Parameters

          • rest...arguments_: [error: Error]

          Returns void

    • next: (...arguments_: [value: T]) => void
        • (...arguments_: [value: T]): void
        • Parameters

          • rest...arguments_: [value: T]

          Returns void