@hebcal/leyning
Version:
Torah Reading API for Parashat HaShavua and holidays
14 lines (13 loc) • 564 B
TypeScript
import { Aliyah } from './types';
import { JsonFestivalAliyah } from './internalTypes';
/**
* Makes a deep copy of the src object using JSON stringify and parse
* @deprecated Use structuredClone instead
*/
export declare function clone<T>(src: T): T;
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;