From 335099c6e72fd983b00d67fa2594ef2c1541ec29 Mon Sep 17 00:00:00 2001 From: michealroberts Date: Sun, 11 Aug 2024 18:24:48 +0100 Subject: [PATCH] style: ensure getCoefficientOfEccentricity has explicit return type in earth module in @observerly/astrometry style: ensure getCoefficientOfEccentricity has explicit return type in earth module in @observerly/astrometry --- src/earth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/earth.ts b/src/earth.ts index 21cc8c9..79e93b6 100644 --- a/src/earth.ts +++ b/src/earth.ts @@ -115,7 +115,7 @@ export const getObliquityOfEcliptic = (datetime: Date): number => { * @param datetime - The date to get the coefficient of eccentricity for * @returns The coefficient of eccentricity of the Earth's orbit */ -export const getCoefficientOfEccentricity = (datetime: Date) => { +export const getCoefficientOfEccentricity = (datetime: Date): number => { // Get the Julian date: const JD = getJulianDate(datetime)