@audiotool/nexus - v0.0.12
    Preparing search index...

    Function throw_

    • Instantly throws the message or error. strings are wrapped in an Error.

      Useful to throw early if something is expected to be defined using the ?? operator. Example:

      const getX: () => number | undefined
      const x: number = getX() ?? throw_("expected x to be defined")

      Parameters

      • Optionalmessage: string | Error

      Returns never