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

    Module utils/typeGuards/lerochem

    Functions - Typeguards

    isLeroChemDataProduct

    Type guard for the #product-details data-product dataset (a PrestaShop product combination). Narrows an unknown parsed value to LeroChemDataProduct; only requires that it be a populated object, as every field is optional.

    isLeroChemVariantRefresh

    Type guard for the PrestaShop product refresh AJAX response. Narrows an unknown parsed value to LeroChemVariantRefresh by requiring that it be an object carrying a string product_details HTML fragment.