@umbraco-cms/backoffice

    Interface UmbRepositoryResponseWithAsObservable<T, T$>

    Interface for a repository that can return a paged model.

    interface UmbRepositoryResponseWithAsObservable<T, T$ = T> {
        asObservable: () => undefined | Observable<T$>;
        data?: T;
        error?: Error | UmbApiError | UmbCancelError | UmbError;
    }

    Type Parameters

    • T

      The type of items in the paged model.

    • T$ = T

      The type of items returned by the asObservable method, defaults to T. You should only use this if you want to return a different type from the asObservable method.

    Hierarchy (View Summary, Expand)

    Index

    Properties

    asObservable: () => undefined | Observable<T$>
    data?: T

    The data returned from the data source.

    error?: Error | UmbApiError | UmbCancelError | UmbError

    The error that occurred when fetching the data.

    MMNEPVFCICPMFPCPTTAAATR