@types/luxon
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -13,2 +13,6 @@ // Type definitions for luxon 0.2 | ||
type ZoneOptions = { | ||
keepLocalTime?: boolean; | ||
/** | ||
* @deprecated since 0.2.12. Use keepLocalTime instead | ||
*/ | ||
keepCalendarTime?: boolean; | ||
@@ -65,22 +69,22 @@ }; | ||
class DateTime { | ||
static DATETIME_FULL: DateTimeFormatOptions; | ||
static DATETIME_FULL_WITH_SECONDS: DateTimeFormatOptions; | ||
static DATEIME_HUGE: DateTimeFormatOptions; | ||
static DATEIME_HUGE_WITH_SECONDS: DateTimeFormatOptions; | ||
static DATETIME_MED: DateTimeFormatOptions; | ||
static DATETIME_MED_WITH_SECONDS: DateTimeFormatOptions; | ||
static DATETIME_SHORT: DateTimeFormatOptions; | ||
static DATETIME_SHORT_WITH_SECONDS: DateTimeFormatOptions; | ||
static DATE_FULL: DateTimeFormatOptions; | ||
static DATE_HUGE: DateTimeFormatOptions; | ||
static DATE_MED: DateTimeFormatOptions; | ||
static DATE_SHORT: DateTimeFormatOptions; | ||
static TIME_24_SIMPLE: DateTimeFormatOptions; | ||
static TIME_24_WITH_LONG_OFFSET: DateTimeFormatOptions; | ||
static TIME_24_WITH_SECONDS: DateTimeFormatOptions; | ||
static TIME_24_WITH_SHORT_OFFSET: DateTimeFormatOptions; | ||
static TIME_SIMPLE: DateTimeFormatOptions; | ||
static TIME_WITH_LONG_OFFSET: DateTimeFormatOptions; | ||
static TIME_WITH_SECONDS: DateTimeFormatOptions; | ||
static TIME_WITH_SHORT_OFFSET: DateTimeFormatOptions; | ||
static readonly DATETIME_FULL: DateTimeFormatOptions; | ||
static readonly DATETIME_FULL_WITH_SECONDS: DateTimeFormatOptions; | ||
static readonly DATETIME_HUGE: DateTimeFormatOptions; | ||
static readonly DATETIME_HUGE_WITH_SECONDS: DateTimeFormatOptions; | ||
static readonly DATETIME_MED: DateTimeFormatOptions; | ||
static readonly DATETIME_MED_WITH_SECONDS: DateTimeFormatOptions; | ||
static readonly DATETIME_SHORT: DateTimeFormatOptions; | ||
static readonly DATETIME_SHORT_WITH_SECONDS: DateTimeFormatOptions; | ||
static readonly DATE_FULL: DateTimeFormatOptions; | ||
static readonly DATE_HUGE: DateTimeFormatOptions; | ||
static readonly DATE_MED: DateTimeFormatOptions; | ||
static readonly DATE_SHORT: DateTimeFormatOptions; | ||
static readonly TIME_24_SIMPLE: DateTimeFormatOptions; | ||
static readonly TIME_24_WITH_LONG_OFFSET: DateTimeFormatOptions; | ||
static readonly TIME_24_WITH_SECONDS: DateTimeFormatOptions; | ||
static readonly TIME_24_WITH_SHORT_OFFSET: DateTimeFormatOptions; | ||
static readonly TIME_SIMPLE: DateTimeFormatOptions; | ||
static readonly TIME_WITH_LONG_OFFSET: DateTimeFormatOptions; | ||
static readonly TIME_WITH_SECONDS: DateTimeFormatOptions; | ||
static readonly TIME_WITH_SHORT_OFFSET: DateTimeFormatOptions; | ||
static fromHTTP(text: string, options?: DateTimeOptions): DateTime; | ||
@@ -99,2 +103,15 @@ static fromISO(text: string, options?: DateTimeOptions): DateTime; | ||
static fromSQL(text: string, options?: DateTimeOptions): DateTime; | ||
static fromFormat( | ||
text: string, | ||
format: string, | ||
opts?: DateTimeOptions | ||
): DateTime; | ||
static fromFormatExplain( | ||
text: string, | ||
format: string, | ||
opts?: DateTimeOptions | ||
): object; | ||
/** | ||
* @deprecated since 0.3.0. Use fromFormat instead | ||
*/ | ||
static fromString( | ||
@@ -105,2 +122,5 @@ text: string, | ||
): DateTime; | ||
/** | ||
* @deprecated 0.3.0. Use fromFormatExplain instead | ||
*/ | ||
static fromStringExplain( | ||
@@ -107,0 +127,0 @@ text: string, |
{ | ||
"name": "@types/luxon", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "TypeScript definitions for luxon", | ||
@@ -25,4 +25,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "797a90adebfea1574d5f7d508ceb1c11fe38e9db8da57786d96006536dc92c18", | ||
"typesPublisherContentHash": "59b698d4241e5c2b4330d2e1cf6b8cdacb3bcd2557e6c0c632e329c008b1ec55", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 03 Jan 2018 19:51:48 GMT | ||
* Last updated: Wed, 17 Jan 2018 22:17:28 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
17058
369