ChemPal Documentation - v1.18.0
    Preparing search index...

    Type Alias ProductRefreshResult

    ProductRefreshResult:
        | { status: typeof OK; ref: ProductRef; product: Product }
        | { status: typeof UNAVAILABLE; ref: ProductRef }
        | { status: typeof FAILED; ref: ProductRef; reason: string }

    The outcome of refetching one product. Only OK carries a product.

    export type ProductRefreshResult =
    | { status: typeof PRODUCT_REFRESH_STATUS.OK; ref: ProductRef; product: Product }
    | { status: typeof PRODUCT_REFRESH_STATUS.UNAVAILABLE; ref: ProductRef }
    | { status: typeof PRODUCT_REFRESH_STATUS.FAILED; ref: ProductRef; reason: string };