@maschinenlesbar.org/fragdenstaat-cli
    Preparing search index...

    Function assertValid

    • Enforce a rule: throw FdsValidationError with the message Invalid <name>: <reason> when problem(value) reports one, else return value unchanged. Client methods that return a promise call it inside the async body, so a rejected input rejects the promise (and sends no request) instead of throwing synchronously.

      Type Parameters

      • T

      Parameters

      Returns T