pray-calc/.github/wiki/api/interfaces/MethodDefinition.md

2.1 KiB

pray-calc v2.1.1


pray-calc / MethodDefinition

Interface: MethodDefinition

Defined in: types.ts:104

Internal record for a single traditional method definition.

Properties

fajrAngle

fajrAngle: number | null

Defined in: types.ts:115

Fajr depression angle in degrees. Null means the method uses a seasonal calculation (MSC) rather than a fixed angle.


id

id: string

Defined in: types.ts:106

Short identifier used as the Methods map key.


ishaAngle

ishaAngle: number | null

Defined in: types.ts:120

Isha depression angle in degrees. Null means the method uses a fixed-minute offset or seasonal calculation instead.


ishaMinutes?

optional ishaMinutes?: number

Defined in: types.ts:125

Fixed minutes after sunset for Isha. Overrides ishaAngle when set. UAQ uses 90 year-round; Qatar uses 90 as well.


name

name: string

Defined in: types.ts:108

Human-readable name.


region

region: string

Defined in: types.ts:110

Geographic region of primary use.


useMSC?

optional useMSC?: boolean

Defined in: types.ts:130

When true, the method uses the MSC seasonal algorithm for both Fajr and Isha.