From 5c85127fac1dbd407723842f2dc12d1d3581e20a Mon Sep 17 00:00:00 2001 From: Timotej Rojko <33236065+timotejroiko@users.noreply.github.com> Date: Sat, 19 Nov 2022 13:30:25 -0300 Subject: [PATCH] minor type fixes --- index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.d.ts b/index.d.ts index 1859d50..5f9113d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2,9 +2,9 @@ * ## Sweph * Definitive Swiss Ephemeris bindings for Node.js * - * [Official programmers documentation for the Swiss Ephemeris](https://www.astro.com/swisseph/swephprg.htm) + * [Official programmer's documentation for the Swiss Ephemeris](https://www.astro.com/swisseph/swephprg.htm) * [Official guide for the Swiss Ephemeris](https://www.astro.com/ftp/swisseph/doc/swisseph.htm) - * [Sweph on Github](https://github.com/timotejroiko/sweph) + * [Sweph on GitHub](https://github.com/timotejroiko/sweph) * [Sweph on NPM](http://npmjs.com/package/sweph) * * ### Usage @@ -2092,7 +2092,7 @@ declare module "sweph" { * ``` * • csec: number // Centiseconds value * • sep: string // Separator character - * • supzero: boolean // Omit seconds if they are zero + * • suppresszero: boolean // Omit seconds if they are zero * ``` * ### Returns * ``` @@ -2104,7 +2104,7 @@ declare module "sweph" { * ``` *   */ - export function cs2timestr(csec: number, sep: string, supzero: boolean): string; + export function cs2timestr(csec: number, sep: string, suppresszero: boolean): string; /** * ### Description @@ -2189,7 +2189,7 @@ declare module "sweph" { * ``` *   */ - export function date_conversion(year: number, month: number, day: number, hour: number, calendar: string): DateConversion; + export function date_conversion(year: number, month: number, day: number, hour: number, calendar: "g" | "j" | (string & {})): DateConversion; /** * ### Description @@ -2600,7 +2600,7 @@ declare module "sweph" { * ``` *   */ - export function gauquelin_sector(tjd_ut: number, ipl: number, starname: string | null, iflag: number, imeth: number, geopos: [number,number,number], atpress: number, attemp: number): GauquelinSector; + export function gauquelin_sector(tjd_ut: number, ipl: number, starname: string | null, iflag: number, imeth: number, geopos: [longitude: number, latitude: number, elevation: number], atpress: number, attemp: number): GauquelinSector; /** * ### Description @@ -4114,7 +4114,7 @@ declare module "sweph" { * ### Params * ``` * • tjd: number // Julian day in universal time - * • gregflag: number // Calendar type (SE_JUL_CAL or SE_GREG_CAL) + * • gregflag: number // Calendar system, SE_GREG_CAL for gregorian calendar, SE_JUL_CAL for julian calendar * ``` * ### Returns * ```