Type Alias SedraResult

SedraResult: {
    chag: boolean;
    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

  • 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']