dCBOR Pattern TypeScript - v1.0.0-alpha.20
    Preparing search index...

    Function adjustSpan

    • Adjusts the span of an error by adding the given offset to both start and end positions. Returns a new error with adjusted span, or the original error if it has no span.

      Parameters

      • error: Error
      • offset: number

      Returns Error