@hebcal/leyning
    Preparing search index...

    Type Alias ParshaMeta

    Raw metadata for a single parsha, as stored in aliyot.json and returned by lookupParsha.

    Note the raw JSON shapes differ from the richer types used in a computed Leyning: here fullkriyah/weekday map to [begin, end] (or [begin, end, reason]) string tuples rather than Aliyah objects, and the book is given once as a number in ParshaMeta.book rather than repeated on every passage.

    type ParshaMeta = {
        book: number;
        chabad?: Aliyah | Aliyah[];
        combined?: boolean;
        fullkriyah: Record<string, string[]>;
        haft: Aliyah | Aliyah[];
        haftTheme?: HaftTheme;
        hebrew: string;
        num: number | number[];
        num1?: number;
        num2?: number;
        p1?: string;
        p2?: string;
        seph?: Aliyah | Aliyah[];
        weekday?: Record<string, string[]>;
    }
    Index
    book: number

    Book number: 1 for Genesis, 2 for Exodus … 5 for Deuteronomy

    chabad?: Aliyah | Aliyah[]

    Alternate Haftarah read by Chabad, if different from haft

    combined?: boolean

    true when this entry represents a doubled (combined) parsha

    fullkriyah: Record<string, string[]>

    Shabbat Torah reading as [begin, end] (or [begin, end, reason]) verse tuples, keyed by "1" through "7" plus "M" for the maftir

    haft: Aliyah | Aliyah[]

    Haftarah, as a single passage or an array of passages

    haftTheme?: HaftTheme

    Theme of the Haftarah when this parsha's Haftarah is one of the Haftarot of Admonition or Consolation around Tish'a B'Av. See HaftTheme.

    hebrew: string

    Parsha name in Hebrew with nikud (vowel points)

    num: number | number[]

    Parsha number: 1 for Bereshit, 2 for Noach, etc. For a doubled parsha this is a two-element array such as [21, 22] (Vayakhel-Pekudei)

    num1?: number

    For a combined parsha, the parsha number of the first component

    num2?: number

    For a combined parsha, the parsha number of the second component

    p1?: string

    For a combined parsha, the name of the first component, e.g. "Vayakhel"

    p2?: string

    For a combined parsha, the name of the second component, e.g. "Pekudei"

    seph?: Aliyah | Aliyah[]

    Alternate Haftarah read by Sephardim, if different from haft

    weekday?: Record<string, string[]>

    Weekday (Monday & Thursday) Torah reading as [begin, end] verse tuples, keyed by "1" through "3". Absent for parshiyot never read on a weekday.