Skip to content

Commit

Permalink
correct typings
Browse files Browse the repository at this point in the history
  • Loading branch information
timotejroiko committed Aug 20, 2022
1 parent 8cde0e5 commit c11f5b6
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2998,11 +2998,11 @@ declare module "sweph" {
* ```
* ### Example
* ```
* const name = house_name("p"); // "Placidus"
* const name = house_name("P"); // "Placidus"
* ```
*  
*/
export function house_name(hsys: number): string;
export function house_name(hsys: HouseSystems | string & {}): string;

/**
* ### Description
Expand Down Expand Up @@ -3031,7 +3031,7 @@ declare module "sweph" {
* ```
*  
*/
export function house_pos(armc: number, geolat: number, eps: number, hsys: string, xpin: [longitude: number, latitude: number]): HousePosition;
export function house_pos(armc: number, geolat: number, eps: number, hsys: HouseSystems | string & {}, xpin: [longitude: number, latitude: number]): HousePosition;

/**
* ### Description
Expand Down Expand Up @@ -3085,8 +3085,9 @@ declare module "sweph" {
* ```
*  
*/
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): HousesEx<36>;
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: string, decl?: number): HousesEx<12> | HousesEx<36>;

/**
* ### Description
Expand Down Expand Up @@ -3132,8 +3133,9 @@ declare module "sweph" {
* ```
* &nbsp;
*/
export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
export function houses_armc(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): Houses<36>;
export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
export function houses_armc(armc: number, geolat: number, eps: number, hsys: string, decl?: number): Houses<12> | Houses<36>;

/**
* ### Description
Expand Down Expand Up @@ -3178,8 +3180,9 @@ declare module "sweph" {
* ```
* &nbsp;
*/
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;

/**
* ### Description
Expand Down Expand Up @@ -3232,8 +3235,9 @@ declare module "sweph" {
* ```
* &nbsp;
*/
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): HousesEx<36>;
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): HousesEx<12> | HousesEx<36>;

/**
* ### Description
Expand Down Expand Up @@ -3277,8 +3281,9 @@ declare module "sweph" {
* ```
* &nbsp;
*/
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;

/**
* ### Description
Expand Down

0 comments on commit c11f5b6

Please sign in to comment.