interface / @typed/react/AsyncData

AsyncDataProps

Public interface exposed as AsyncDataProps from @typed/react/AsyncData.

Package version
1.0.0-beta.13
Category
interface

Import

import { AsyncDataProps } from "@typed/react/AsyncData";

Signatures

export interface AsyncDataProps<A, E> {
    readonly data: Data.AsyncData<A, E>;
    readonly children: (value: A, state: AsyncDataView<A, E>) => ReactNode;
    readonly failure: (cause: Cause.Cause<E>, state: AsyncDataView<A, E>) => ReactNode;
    readonly loading?: ReactNode;
    readonly noData?: ReactNode;
}

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source