Comparing version 3.19.5 to 3.20.0
@@ -21,8 +21,8 @@ import { ReactElement } from 'react'; | ||
export default function createFormatter({ _cache: cache, _formatters: formatters, formats, locale, now: globalNow, onError, timeZone: globalTimeZone }: Props): { | ||
dateTime: (value: Date | number, formatOrOptions?: string | DateTimeFormatOptions) => string; | ||
number: (value: number | bigint, formatOrOptions?: string | NumberFormatOptions) => string; | ||
dateTime: (value: Date | number, formatOrOptions?: Extract<keyof IntlFormats["dateTime"], string> | DateTimeFormatOptions) => string; | ||
number: (value: number | bigint, formatOrOptions?: Extract<keyof IntlFormats["number"], string> | NumberFormatOptions) => string; | ||
relativeTime: (date: number | Date, nowOrOptions?: RelativeTimeFormatOptions["now"] | RelativeTimeFormatOptions) => string; | ||
list: <Value extends string | ReactElement<any, string | import("react").JSXElementConstructor<any>>>(value: Iterable<Value>, formatOrOptions?: string | Intl.ListFormatOptions) => Value extends string ? string : Iterable<ReactElement>; | ||
dateTimeRange: (start: Date | number, end: Date | number, formatOrOptions?: string | DateTimeFormatOptions) => string; | ||
list: <Value extends string | ReactElement<any, string | import("react").JSXElementConstructor<any>>>(value: Iterable<Value>, formatOrOptions?: Extract<keyof IntlFormats["list"], string> | Intl.ListFormatOptions) => Value extends string ? string : Iterable<ReactElement>; | ||
dateTimeRange: (start: Date | number, end: Date | number, formatOrOptions?: Extract<keyof IntlFormats["dateTime"], string> | DateTimeFormatOptions) => string; | ||
}; | ||
export {}; |
{ | ||
"name": "use-intl", | ||
"version": "3.19.5", | ||
"version": "3.20.0", | ||
"sideEffects": false, | ||
@@ -72,3 +72,3 @@ "author": "Jan Amann <jan@amann.work>", | ||
}, | ||
"gitHead": "05579a88f2b394190d108d998038ab58a8cfac41" | ||
"gitHead": "5a50f56167b6a1200b2d14d6714a74641fb0c732" | ||
} |
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
107461