Class Passage

A passage is a range of verses.

Hierarchy

  • Passage

Implements

Constructors

Properties

from: Reference

The first verse in the passage.

The last verse in the passage.

Methods

  • Convert the passage to a string.

    Returns string

  • Extract the first passage from a string.

    Returns

    The first passage if one can be extracted, otherwise null.

    Parameters

    • input: string

      A string to attempt to extract a passage from.

    Returns null | Passage

  • Extract the passages from a string.

    Returns

    The passages if any can be extracted, otherwise an empty array.

    Parameters

    • input: string

      A string to attempt to extract a passages from.

    Returns readonly Passage[]

  • Parse a passage from a string.

    Throws

    If the input cannot be parsed.

    Parameters

    • input: string

    Returns Passage

Generated using TypeDoc