Type Alias SedraResult

SedraResult: {
    chag: boolean;
    hdate: HDate;
    num?: number | number[];
    parsha: string[];
}

The result from Sedra.lookup()

Type declaration

  • chag: boolean

    True if this is a regular parasha HaShavua Torah reading, false if it's a special holiday reading

  • hdate: HDate

    The date of the Shabbat this parsha is read

  • Optionalnum?: number | number[]

    The parsha number (or numbers) using 1-indexing. A number for a regular (single) parsha, and a number[] for a doubled parsha. For Parashat Bereshit, num would be equal to 1, and for Matot-Masei it would be [42, 43]

  • parsha: string[]

    Name of the parsha (or parshiyot) read on Hebrew date, e.g. ['Noach'] or ['Matot', 'Masei']