date-fns-tz
Advanced tools
Comparing version 1.0.6 to 1.0.7-beta.1
{ | ||
"name": "date-fns-tz", | ||
"version": "1.0.6", | ||
"version": "1.0.7-beta.1", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "Time zone support for date-fns v2 with the browser Intl API", |
@@ -27,27 +27,24 @@ // This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. | ||
// Type Aliases | ||
declare module 'date-fns-tz' { | ||
import { Locale } from 'date-fns' | ||
type OptionsWithTZ = { | ||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | ||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
additionalDigits?: 0 | 1 | 2 | ||
timeZone?: string | ||
locale?: import('date-fns').Locale | ||
includeSeconds?: boolean | ||
addSuffix?: boolean | ||
unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | ||
roundingMethod?: 'floor' | 'ceil' | 'round' | ||
awareOfUnicodeTokens?: boolean | ||
export type OptionsWithTZ = { | ||
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | ||
firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
additionalDigits?: 0 | 1 | 2 | ||
timeZone?: string | ||
locale?: Locale | ||
includeSeconds?: boolean | ||
addSuffix?: boolean | ||
unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | ||
roundingMethod?: 'floor' | 'ceil' | 'round' | ||
awareOfUnicodeTokens?: boolean | ||
} | ||
} | ||
type OptionsWithTZAliased = OptionsWithTZ | ||
// Exported Type Aliases | ||
// Regular Functions | ||
declare module 'date-fns-tz' { | ||
export type OptionsWithTZ = OptionsWithTZAliased | ||
} | ||
import { OptionsWithTZ } from 'date-fns-tz' | ||
// Regular Functions | ||
declare module 'date-fns-tz' { | ||
function format( | ||
@@ -152,2 +149,4 @@ date: Date | string | number, | ||
declare module 'date-fns-tz/fp' { | ||
import { OptionsWithTZ } from 'date-fns-tz' | ||
const format: CurriedFn2<string, Date | string | number, string> | ||
@@ -336,2 +335,4 @@ namespace format { | ||
declare module 'date-fns-tz/esm' { | ||
import { OptionsWithTZ } from 'date-fns-tz' | ||
function format( | ||
@@ -436,2 +437,4 @@ date: Date | string | number, | ||
declare module 'date-fns-tz/esm/fp' { | ||
import { OptionsWithTZ } from 'date-fns-tz' | ||
const format: CurriedFn2<string, Date | string | number, string> | ||
@@ -616,37 +619,1 @@ namespace format { | ||
} | ||
// Regular Locales | ||
declare module 'date-fns-tz/locale' { | ||
} | ||
// ECMAScript Module Locales | ||
declare module 'date-fns-tz/esm/locale' { | ||
} | ||
// dateFns Global Interface | ||
interface dateFns { | ||
format( | ||
date: Date | string | number, | ||
format: string, | ||
options?: OptionsWithTZ | ||
): string | ||
toDate(argument: Date | string | number, options?: OptionsWithTZ): Date | ||
utcToZonedTime( | ||
date: Date | string | number, | ||
timeZone: string, | ||
options?: OptionsWithTZ | ||
): Date | ||
zonedTimeToUtc( | ||
date: Date | string | number, | ||
timeZone: string, | ||
options?: OptionsWithTZ | ||
): Date | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
166870
2982
2