Helpful
    Preparing search index...

    Function required

    • Requires a value to be non null.

      Type Parameters

      • T

        The type of value that is being checked.

      Parameters

      • val: ZObligatedValue<T>

        The value to require. This can be a promise that can return null or undefined in addition to the value.

      Returns Promise<T>

      This method returns val if it is not null or undefined, otherwise, an error is thrown.

      An error if the value is null or undefined.