@angelrove/forecast-utils 1.1.7 → 1.1.8
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/dist/types/OpenMeteo/weatherSymbol/lib/getWeatherCodeEntry.d.ts +1 -1
- package/dist/types/OpenMeteo/weatherSymbol/weatherSymbol.d.ts +1 -1
- package/dist/types/astronomy/moon/MoonCalc.d.ts +3 -3
- package/dist/types/astronomy/moon/parseBasicData.d.ts +1 -1
- package/dist/types/astronomy/sun/helpers.d.ts +1 -0
- package/dist/types/astronomy/types.d.ts +2 -2
- package/dist/types/utils/timehelpers.d.ts +3 -3
- package/dist/types/utils/wind/WindArrow.d.ts +4 -4
- package/package.json +4 -2
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @returns {{ icon: string, description: string }}
|
|
9
9
|
* @memberof module:OpenMeteo
|
|
10
10
|
*/
|
|
11
|
-
export function weatherSymbol(code: any, precipitation?: number
|
|
11
|
+
export function weatherSymbol(code: any, precipitation?: number, night?: boolean, dark?: boolean): {
|
|
12
12
|
icon: string;
|
|
13
13
|
description: string;
|
|
14
14
|
};
|
|
@@ -21,7 +21,7 @@ declare namespace MoonCalc {
|
|
|
21
21
|
* @returns {MoonData}
|
|
22
22
|
* @memberof module:Astronomy/MoonCalc
|
|
23
23
|
*/
|
|
24
|
-
declare function data(latitude: number, longitude: number, date?: Date
|
|
24
|
+
declare function data(latitude: number, longitude: number, date?: Date, language?: string): MoonData;
|
|
25
25
|
/**
|
|
26
26
|
* Información de la luna para una fecha y hora dadas.
|
|
27
27
|
* La fecha y hora se devolverán en la zona horaria local.
|
|
@@ -33,7 +33,7 @@ declare function data(latitude: number, longitude: number, date?: Date | undefin
|
|
|
33
33
|
* @returns {{ date: string, time: string, illumination: string, phase: string, phaseId: string, emoji: string, parallacticAngle: number, angle: number, position: AstroPosition, next: object }}
|
|
34
34
|
* @memberof module:Astronomy/MoonCalc
|
|
35
35
|
*/
|
|
36
|
-
declare function dataExt(latitude: number, longitude: number, date?: Date
|
|
36
|
+
declare function dataExt(latitude: number, longitude: number, date?: Date, language?: string): {
|
|
37
37
|
date: string;
|
|
38
38
|
time: string;
|
|
39
39
|
illumination: string;
|
|
@@ -65,7 +65,7 @@ declare function times(latitude: number, longitude: number, timezoneId: string,
|
|
|
65
65
|
* @returns {string} - Emoji of the moon phase
|
|
66
66
|
* @memberof module:Astronomy/MoonCalc
|
|
67
67
|
*/
|
|
68
|
-
declare function emoji(latitude: number, longitude: number, date?: Date
|
|
68
|
+
declare function emoji(latitude: number, longitude: number, date?: Date): string;
|
|
69
69
|
/**
|
|
70
70
|
* @param {number} altitude
|
|
71
71
|
* @param {Date} highest
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,7 +12,7 @@ declare namespace TimeDateStr {
|
|
|
12
12
|
* @returns {string} La fecha formateada.
|
|
13
13
|
* @memberof module:Utils/TimeDateStr
|
|
14
14
|
*/
|
|
15
|
-
declare function dateFormat(date?: Date
|
|
15
|
+
declare function dateFormat(date?: Date): string;
|
|
16
16
|
/**
|
|
17
17
|
* Returns a now time as a formated string.
|
|
18
18
|
*
|
|
@@ -29,7 +29,7 @@ declare function nowString(sec?: boolean): string;
|
|
|
29
29
|
* @returns {string} La fecha formateada.
|
|
30
30
|
* @memberof module:Utils/TimeDateStr
|
|
31
31
|
*/
|
|
32
|
-
declare function timeString(date?: Date
|
|
32
|
+
declare function timeString(date?: Date, sec?: boolean): string;
|
|
33
33
|
/**
|
|
34
34
|
* Return the local time string from a given timezone.
|
|
35
35
|
*
|
|
@@ -38,4 +38,4 @@ declare function timeString(date?: Date | undefined, sec?: boolean | undefined):
|
|
|
38
38
|
* @returns {string} - The formatted local time string.
|
|
39
39
|
* @memberof module:Utils/TimeDateStr
|
|
40
40
|
*/
|
|
41
|
-
declare function getLocalTimeFromTz(timeZone: string, date?:
|
|
41
|
+
declare function getLocalTimeFromTz(timeZone: string, date?: Date | number): string;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export function WindArrow({ deg, size, strokeWidth, className, }: {
|
|
13
13
|
deg: number;
|
|
14
|
-
size
|
|
15
|
-
strokeWidth
|
|
16
|
-
className
|
|
17
|
-
}):
|
|
14
|
+
size?: string | undefined;
|
|
15
|
+
strokeWidth?: number | undefined;
|
|
16
|
+
className?: string | undefined;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Jose Angel Romero Vegas",
|
|
3
3
|
"name": "@angelrove/forecast-utils",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.8",
|
|
5
5
|
"description": "Utilities for obtaining weather and astronomy forecast data.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"publishConfig": {
|
|
@@ -39,7 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@biomejs/biome": "1.9.4",
|
|
42
|
-
"jsdoc-to-markdown": "^9.1.1"
|
|
42
|
+
"jsdoc-to-markdown": "^9.1.1",
|
|
43
|
+
"@types/react": "^19.1.5",
|
|
44
|
+
"@types/react-dom": "^19.1.5"
|
|
43
45
|
},
|
|
44
46
|
"dependencies": {}
|
|
45
47
|
}
|