@types/luxon
Advanced tools
Comparing version 1.22.1 to 1.24.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for luxon 1.22 | ||
// Type definitions for luxon 1.24 | ||
// Project: https://github.com/moment/luxon#readme | ||
@@ -14,3 +14,2 @@ // Definitions by: Colby DeHart <https://github.com/colbydehart> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
@@ -71,8 +70,32 @@ export type DateTimeFormatOptions = Intl.DateTimeFormatOptions; | ||
export type ToISOFormat = 'basic' | 'extended'; | ||
export interface ToISOTimeOptions { | ||
/** | ||
* @default false | ||
*/ | ||
suppressMilliseconds?: boolean; | ||
/** | ||
* @default false | ||
*/ | ||
suppressSeconds?: boolean; | ||
/** | ||
* @default true | ||
*/ | ||
includeOffset?: boolean; | ||
/** | ||
* choose between the basic and extended format | ||
* @default 'extended' | ||
*/ | ||
format?: ToISOFormat; | ||
} | ||
export interface ToISODateOptions { | ||
/** | ||
* choose between the basic and extended format | ||
* @default 'extended' | ||
*/ | ||
format?: ToISOFormat; | ||
} | ||
// alias for backwards compatibility | ||
@@ -255,3 +278,4 @@ export type ISOTimeOptions = ToISOTimeOptions; | ||
toISO(options?: ToISOTimeOptions): string; | ||
toISODate(): string; | ||
/** Returns an ISO 8601-compliant string representation of this DateTime's date component */ | ||
toISODate(options?: ToISODateOptions): string; | ||
toISOTime(options?: ToISOTimeOptions): string; | ||
@@ -258,0 +282,0 @@ toISOWeekDate(): string; |
{ | ||
"name": "@types/luxon", | ||
"version": "1.22.1", | ||
"version": "1.24.0", | ||
"description": "TypeScript definitions for luxon", | ||
@@ -67,4 +67,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d771c12ab730dc325c29ad7f2b14e8f9fd3593d522623f25c4bd2dcca5a0eef7", | ||
"typesPublisherContentHash": "2ceca6e23ffb1a459e8045168d40295a7f166774b24274d819ca553fa84b0c7c", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 06 May 2020 09:11:45 GMT | ||
* Last updated: Wed, 06 May 2020 22:30:11 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
22130
518