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

    Function assertValid

    • Check value against problem and return it unchanged when it is valid. Otherwise throw an OparlValidationError reading Invalid <name>: <reason>. Inside an async method the throw becomes a rejection, before any request is made.

      Type Parameters

      • T

      Parameters

      Returns T