PiDraw API
    Preparing search index...

    Function locate

    • Where an error is in a line: the entry of the option for an OptionError, found after the ->. Nothing for the other errors, which concern the whole line.

      Parameters

      • text: string
      • error: PiDrawError
      • indent: number = 0

        how many spaces the line had before text, which the columns count.

      Returns { from?: number; to?: number }