@types/suncalc
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -40,4 +40,4 @@ // Type definitions for suncalc 1.8 | ||
set: Date; | ||
alwaysUp: boolean; | ||
alwaysDown: boolean; | ||
alwaysUp?: true; | ||
alwaysDown?: true; | ||
} | ||
@@ -44,0 +44,0 @@ |
{ | ||
"name": "@types/suncalc", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "TypeScript definitions for suncalc", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/suncalc", | ||
"license": "MIT", | ||
@@ -14,10 +15,12 @@ "contributors": [ | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/suncalc" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "682accc2543ed4d975778baeac4b0e6c2905d947925e1237b5639704ff698425", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "b6e57f05f98c96c1cc8da0e3f79b823a588c26e817831c700a25b0e72291a95d", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -8,6 +8,59 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/suncalc | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/suncalc. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/suncalc/index.d.ts) | ||
````ts | ||
// Type definitions for suncalc 1.8 | ||
// Project: https://github.com/mourner/suncalc | ||
// Definitions by: horiuchi <https://github.com/horiuchi> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Fri, 22 Jun 2018 00:08:12 GMT | ||
export interface GetTimesResult { | ||
dawn: Date; | ||
dusk: Date; | ||
goldenHour: Date; | ||
goldenHourEnd: Date; | ||
nadir: Date; | ||
nauticalDawn: Date; | ||
nauticalDusk: Date; | ||
night: Date; | ||
nightEnd: Date; | ||
solarNoon: Date; | ||
sunrise: Date; | ||
sunriseEnd: Date; | ||
sunset: Date; | ||
sunsetStart: Date; | ||
} | ||
export interface GetSunPositionResult { | ||
altitude: number; | ||
azimuth: number; | ||
} | ||
export interface GetMoonPositionResult { | ||
altitude: number; | ||
azimuth: number; | ||
distance: number; | ||
parallacticAngle: number; | ||
} | ||
export interface GetMoonIlluminationResult { | ||
fraction: number; | ||
phase: number; | ||
angle: number; | ||
} | ||
export interface GetMoonTimes { | ||
rise: Date; | ||
set: Date; | ||
alwaysUp?: true; | ||
alwaysDown?: true; | ||
} | ||
export function getTimes(date: Date, latitude: number, longitude: number): GetTimesResult; | ||
export function addTime(angleInDegrees: number, morningName: string, eveningName: string): void; | ||
export function getPosition(timeAndDate: Date, latitude: number, longitude: number): GetSunPositionResult; | ||
export function getMoonPosition(timeAndDate: Date, latitude: number, longitude: number): GetMoonPositionResult; | ||
export function getMoonIllumination(timeAndDate: Date): GetMoonIlluminationResult; | ||
export function getMoonTimes(date: Date, latitude: number, longitude: number, inUTC?: boolean): GetMoonTimes; | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 12 Aug 2021 21:01:29 GMT | ||
* Dependencies: none | ||
@@ -17,2 +70,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by horiuchi <https://github.com/horiuchi>. | ||
These definitions were written by [horiuchi](https://github.com/horiuchi). |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5668
0
70