@types/luxon
Advanced tools
Comparing version 2.0.5 to 2.0.6
{ | ||
"name": "@types/luxon", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "TypeScript definitions for luxon", | ||
@@ -73,4 +73,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/luxon", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "caaa014a87d6d9053f507cf997a93b4f5fcc9e9a3f6c502209e16439ec627e35", | ||
"typesPublisherContentHash": "67207da97dd2d192057f86b46d6e2c69a556ea6cca8c9bdd7828ac8eac8e9769", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 07 Oct 2021 21:01:20 GMT | ||
* Last updated: Mon, 08 Nov 2021 10:01:36 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `luxon` |
@@ -22,3 +22,15 @@ import { NumberingSystem } from './misc'; | ||
export type DurationUnit = keyof DurationObjectUnits; | ||
export interface DurationLikeObject extends DurationObjectUnits { | ||
year?: number | undefined; | ||
quarter?: number | undefined; | ||
month?: number | undefined; | ||
week?: number | undefined; | ||
day?: number | undefined; | ||
hour?: number | undefined; | ||
minute?: number | undefined; | ||
second?: number | undefined; | ||
millisecond?: number | undefined; | ||
} | ||
export type DurationUnit = keyof DurationLikeObject; | ||
export type DurationUnits = DurationUnit | DurationUnit[]; | ||
@@ -56,3 +68,3 @@ | ||
*/ | ||
export type DurationInput = Duration | number | DurationObjectUnits; | ||
export type DurationInput = Duration | number | DurationLikeObject; | ||
@@ -62,3 +74,3 @@ /** | ||
*/ | ||
export type DurationLike = Duration | DurationObjectUnits | number; | ||
export type DurationLike = Duration | DurationLikeObject | number; | ||
@@ -113,3 +125,3 @@ /** | ||
*/ | ||
static fromObject(obj: DurationObjectUnits, opts?: DurationOptions): Duration; | ||
static fromObject(obj: DurationLikeObject, opts?: DurationOptions): Duration; | ||
@@ -156,3 +168,3 @@ /** | ||
*/ | ||
static fromISOTime(text: string, opts: DurationOptions): Duration; | ||
static fromISOTime(text: string, opts?: DurationOptions): Duration; | ||
@@ -326,3 +338,3 @@ /** | ||
*/ | ||
set(values: DurationObjectUnits): Duration; | ||
set(values: DurationLikeObject): Duration; | ||
@@ -329,0 +341,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109121
2464