Skip to content

Commit

Permalink
style: ensure getCoefficientOfEccentricity has explicit return type i…
Browse files Browse the repository at this point in the history
…n earth module in @observerly/astrometry

style: ensure getCoefficientOfEccentricity has explicit return type in earth module in @observerly/astrometry
  • Loading branch information
michealroberts committed Aug 11, 2024
1 parent 7167d0c commit 335099c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/earth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 335099c

Please sign in to comment.