Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • When ranges are returned, the array has a "type" property which is the type of range that is required (most commonly, "bytes"). Each array element is an object with a "start" and "end" property for the portion of the range.

    Parameters

    • size: number
    • str: string
    • Optional options: Options

    Returns Result | Ranges

    -1 when unsatisfiable and -2 when syntactically invalid, ranges otherwise.

Index

Type aliases

Result

ResultInvalid

ResultInvalid: -2

ResultUnsatisfiable

ResultUnsatisfiable: -1

Generated using TypeDoc