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

    Function assertValid

    • Throw OpenKaValidationError("Invalid <name>: <reason>") when problem finds fault with value. A function that returns a promise calls this inside its async body, so a rejected input becomes a rejection rather than a synchronous throw; a constructor lets it throw.

      Type Parameters

      • T

      Parameters

      Returns void