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

    Function assertValid

    • Throw an AusbildungValidationError (Invalid <name>: <reason>) when problem finds something wrong with value; otherwise return value unchanged.

      Client methods that return a promise call this inside an async body, so a rejected input surfaces as a rejected promise rather than a synchronous throw, and no request is sent.

      Type Parameters

      • T

      Parameters

      Returns T