UNPKG

@hebcal/leyning

Version:

Torah Reading API for Parashat HaShavua and holidays

13 lines (12 loc) 522 B
import { Aliyah } from './types'; import { JsonFestivalAliyah } from './internalTypes'; /** * Makes a deep copy of the src object using JSON stringify and parse */ export declare function clone(src: any): any; export type Haftarah = Aliyah | Aliyah[] | JsonFestivalAliyah | JsonFestivalAliyah[]; export declare function cloneHaftara(haft: Haftarah): Aliyah | Aliyah[]; /** * Returns the total number of verses in an array of Aliyah (or haftarah) objects */ export declare function sumVerses(aliyot: Haftarah): number;