We have upgraded the product to App Kit and recommend using it for all production deployments. USDCKit will remain available as a private beta product. Thank you.
@circle-fin/usdckit - v0.25.4
    Preparing search index...

    Function raise

    • Throws the provided error

      Type Parameters

      • T extends Error

      Parameters

      • error: T

        The error to be thrown.

      Returns never

      raise(new Error('This is an error'))
      

      Throw error if the condition is not met

      const value = x ?? raise(new Error('x is undefined'))
      const value = x ? x : raise(new Error('x is falsey'))