@kayahr/observable

    Interface SubscriptionObserver<T>

    Interface for a subscription observer.

    interface SubscriptionObserver<T = unknown> {
        closed: boolean;
        complete(): void;
        error(error: Error): void;
        next(value: T): void;
    }

    Type Parameters

    • T = unknown
    Index

    Properties

    Methods

    Properties

    closed: boolean

    A boolean value indicating whether the subscription is closed.

    Methods

    • Sends the sequence error.

      Parameters

      • error: Error

        The error to send.

      Returns void

    • Sends the next value in the sequence

      Parameters

      • value: T

        The next value.

      Returns void

    MMNEPVFCICPMFPCPTTAAATR