@circle-fin/usdckit - v0.18.0
    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'))