sweph 2.10.0-6 → 2.10.0-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +26 -20
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* ## Sweph
|
|
3
3
|
* Definitive Swiss Ephemeris bindings for Node.js
|
|
4
4
|
*
|
|
5
|
-
* [Official documentation for the Swiss Ephemeris](https://www.astro.com/swisseph/swephprg.htm)
|
|
5
|
+
* [Official programmers documentation for the Swiss Ephemeris](https://www.astro.com/swisseph/swephprg.htm)
|
|
6
|
+
* [Official guide for the Swiss Ephemeris](https://www.astro.com/ftp/swisseph/doc/swisseph.htm)
|
|
6
7
|
* [Sweph on Github](https://github.com/timotejroiko/sweph)
|
|
7
|
-
* [Sweph on NPM](http://
|
|
8
|
+
* [Sweph on NPM](http://npmjs.com/package/sweph)
|
|
8
9
|
*
|
|
9
10
|
* ### Usage
|
|
10
11
|
* ```
|
|
@@ -46,7 +47,7 @@ declare module "sweph" {
|
|
|
46
47
|
*/
|
|
47
48
|
flag: number;
|
|
48
49
|
}
|
|
49
|
-
|
|
50
|
+
|
|
50
51
|
interface Error {
|
|
51
52
|
/**
|
|
52
53
|
* ### Description
|
|
@@ -156,7 +157,7 @@ declare module "sweph" {
|
|
|
156
157
|
* ```
|
|
157
158
|
* ```
|
|
158
159
|
*/
|
|
159
|
-
|
|
160
|
+
data: CalcData2;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
interface FixStarMag extends Flag, Name, Error {
|
|
@@ -418,7 +419,7 @@ declare module "sweph" {
|
|
|
418
419
|
* ```
|
|
419
420
|
* ```
|
|
420
421
|
*/
|
|
421
|
-
|
|
422
|
+
data: EclipseTimes3
|
|
422
423
|
}
|
|
423
424
|
|
|
424
425
|
interface LunOccultWhenLoc extends Flag, Error {
|
|
@@ -463,7 +464,7 @@ declare module "sweph" {
|
|
|
463
464
|
* ```
|
|
464
465
|
* ```
|
|
465
466
|
*/
|
|
466
|
-
|
|
467
|
+
data: {
|
|
467
468
|
/**
|
|
468
469
|
* ### Description
|
|
469
470
|
* Array of ascending node values returned by the calculation
|
|
@@ -509,7 +510,7 @@ declare module "sweph" {
|
|
|
509
510
|
* ```
|
|
510
511
|
*/
|
|
511
512
|
aphelion: CalcData2;
|
|
512
|
-
|
|
513
|
+
};
|
|
513
514
|
}
|
|
514
515
|
|
|
515
516
|
interface Pheno extends Flag, Error {
|
|
@@ -1495,7 +1496,7 @@ declare module "sweph" {
|
|
|
1495
1496
|
* Time of third contact
|
|
1496
1497
|
*/
|
|
1497
1498
|
third_contact: number,
|
|
1498
|
-
|
|
1499
|
+
/**
|
|
1499
1500
|
* Time of fourth contact
|
|
1500
1501
|
*/
|
|
1501
1502
|
fourth_contact: number,
|
|
@@ -1811,7 +1812,7 @@ declare module "sweph" {
|
|
|
1811
1812
|
* ### Params
|
|
1812
1813
|
* ```
|
|
1813
1814
|
* • tjd_ut: number // Julian day in universal time
|
|
1814
|
-
* • calc_flag: number // Calculation flag,
|
|
1815
|
+
* • calc_flag: number // Calculation flag, SE_ECL2HOR or SE_EQU2HOR
|
|
1815
1816
|
* • geopos: Array<number> // Geographic coordinates [longitude, latitude, elevation]
|
|
1816
1817
|
* • atpress: number // Atmospheric pressure in mbar/hpa
|
|
1817
1818
|
* • attemp: number // Atmospheric temperature in celcius
|
|
@@ -1942,7 +1943,7 @@ declare module "sweph" {
|
|
|
1942
1943
|
*
|
|
1943
1944
|
*/
|
|
1944
1945
|
export function calc(tjd_et: number, ipl: number, iflag: number): Calc;
|
|
1945
|
-
|
|
1946
|
+
|
|
1946
1947
|
/**
|
|
1947
1948
|
* ### Description
|
|
1948
1949
|
* Reset swisseph internals and cleanup file handles
|
|
@@ -2911,11 +2912,11 @@ declare module "sweph" {
|
|
|
2911
2912
|
* ```
|
|
2912
2913
|
* ### Example
|
|
2913
2914
|
* ```
|
|
2914
|
-
* const name = house_name("
|
|
2915
|
+
* const name = house_name("P"); // "Placidus"
|
|
2915
2916
|
* ```
|
|
2916
2917
|
*
|
|
2917
2918
|
*/
|
|
2918
|
-
export function house_name(hsys:
|
|
2919
|
+
export function house_name(hsys: HouseSystems | string & {}): string;
|
|
2919
2920
|
|
|
2920
2921
|
/**
|
|
2921
2922
|
* ### Description
|
|
@@ -2944,7 +2945,7 @@ declare module "sweph" {
|
|
|
2944
2945
|
* ```
|
|
2945
2946
|
*
|
|
2946
2947
|
*/
|
|
2947
|
-
export function house_pos(armc: number, geolat: number, eps: number, hsys: string, xpin: [longitude: number, latitude: number]): HousePosition;
|
|
2948
|
+
export function house_pos(armc: number, geolat: number, eps: number, hsys: HouseSystems | string & {}, xpin: [longitude: number, latitude: number]): HousePosition;
|
|
2948
2949
|
|
|
2949
2950
|
/**
|
|
2950
2951
|
* ### Description
|
|
@@ -2998,8 +2999,9 @@ declare module "sweph" {
|
|
|
2998
2999
|
* ```
|
|
2999
3000
|
*
|
|
3000
3001
|
*/
|
|
3001
|
-
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
|
|
3002
3002
|
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): HousesEx<36>;
|
|
3003
|
+
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): HousesEx<12>;
|
|
3004
|
+
export function houses_armc_ex2(armc: number, geolat: number, eps: number, hsys: string, decl?: number): HousesEx<12> | HousesEx<36>;
|
|
3003
3005
|
|
|
3004
3006
|
/**
|
|
3005
3007
|
* ### Description
|
|
@@ -3045,8 +3047,9 @@ declare module "sweph" {
|
|
|
3045
3047
|
* ```
|
|
3046
3048
|
*
|
|
3047
3049
|
*/
|
|
3048
|
-
export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
|
|
3049
3050
|
export function houses_armc(armc: number, geolat: number, eps: number, hsys: "G", decl?: number): Houses<36>;
|
|
3051
|
+
export function houses_armc(armc: number, geolat: number, eps: number, hsys: HouseSystems, decl?: number): Houses<12>;
|
|
3052
|
+
export function houses_armc(armc: number, geolat: number, eps: number, hsys: string, decl?: number): Houses<12> | Houses<36>;
|
|
3050
3053
|
|
|
3051
3054
|
/**
|
|
3052
3055
|
* ### Description
|
|
@@ -3091,8 +3094,9 @@ declare module "sweph" {
|
|
|
3091
3094
|
* ```
|
|
3092
3095
|
*
|
|
3093
3096
|
*/
|
|
3094
|
-
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
|
|
3095
3097
|
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
|
|
3098
|
+
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
|
|
3099
|
+
export function houses_ex(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;
|
|
3096
3100
|
|
|
3097
3101
|
/**
|
|
3098
3102
|
* ### Description
|
|
@@ -3145,8 +3149,9 @@ declare module "sweph" {
|
|
|
3145
3149
|
* ```
|
|
3146
3150
|
*
|
|
3147
3151
|
*/
|
|
3148
|
-
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
|
|
3149
3152
|
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: "G"): HousesEx<36>;
|
|
3153
|
+
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: HouseSystems): HousesEx<12>;
|
|
3154
|
+
export function houses_ex2(tjd_ut: number, iflag: number, geolat: number, geolon: number, hsys: string): HousesEx<12> | HousesEx<36>;
|
|
3150
3155
|
|
|
3151
3156
|
/**
|
|
3152
3157
|
* ### Description
|
|
@@ -3190,8 +3195,9 @@ declare module "sweph" {
|
|
|
3190
3195
|
* ```
|
|
3191
3196
|
*
|
|
3192
3197
|
*/
|
|
3193
|
-
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
|
|
3194
3198
|
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: "G"): Houses<36>;
|
|
3199
|
+
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: HouseSystems): Houses<12>;
|
|
3200
|
+
export function houses(tjd_ut: number, geolat: number, geolon: number, hsys: string): Houses<12> | Houses<36>;
|
|
3195
3201
|
|
|
3196
3202
|
/**
|
|
3197
3203
|
* ### Description
|
|
@@ -3671,7 +3677,7 @@ declare module "sweph" {
|
|
|
3671
3677
|
*/
|
|
3672
3678
|
export function nod_aps_ut(tjd_ut: number, ipl: number, iflag: number, method: number): NodAps;
|
|
3673
3679
|
|
|
3674
|
-
|
|
3680
|
+
/**
|
|
3675
3681
|
* ### Description
|
|
3676
3682
|
* Calculate an object's nodes and apsides from ephemeris/terrestrial time
|
|
3677
3683
|
* If the calculation method includes `SE_NODBIT_FOPOINT`, the `aphelion` field contains the values for the object's "second focus" instead
|
|
@@ -4150,7 +4156,7 @@ declare module "sweph" {
|
|
|
4150
4156
|
*
|
|
4151
4157
|
*/
|
|
4152
4158
|
export function sidtime0(tjd_ut: number, eps: number, nut: number): number;
|
|
4153
|
-
|
|
4159
|
+
|
|
4154
4160
|
/**
|
|
4155
4161
|
* ### Description
|
|
4156
4162
|
* Get solar eclipse data for a given date
|