Comparing version 1.1.0 to 1.2.0
# Changelog | ||
## 1.2.0 | ||
- Feat: Added specific types for `DateTimeFormatOptions`. | ||
## 1.1.0 | ||
@@ -4,0 +8,0 @@ |
@@ -0,5 +1,6 @@ | ||
import DateTimeFormatOptions from './DateTimeFormatOptions'; | ||
declare type Formats = { | ||
number: Record<string, Intl.NumberFormatOptions>; | ||
dateTime: Record<string, Intl.DateTimeFormatOptions>; | ||
dateTime: Record<string, DateTimeFormatOptions>; | ||
}; | ||
export default Formats; |
@@ -7,2 +7,3 @@ export { default as IntlProvider } from './IntlProvider'; | ||
export { default as Formats } from './Formats'; | ||
export { default as DateTimeFormatOptions } from './DateTimeFormatOptions'; | ||
export { default as IntlError, IntlErrorCode } from './IntlError'; |
@@ -0,5 +1,6 @@ | ||
import DateTimeFormatOptions from './DateTimeFormatOptions'; | ||
export default function useIntl(): { | ||
formatDateTime: (value: Date | number, formatOrOptions?: string | Intl.DateTimeFormatOptions | undefined) => string; | ||
formatDateTime: (value: Date | number, formatOrOptions?: string | DateTimeFormatOptions | undefined) => string; | ||
formatNumber: (value: number, formatOrOptions?: string | Intl.NumberFormatOptions | undefined) => string; | ||
formatRelativeTime: (date: number | Date, now: number | Date) => string; | ||
}; |
{ | ||
"name": "use-intl", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "author": "Jan Amann <jan@amann.me>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
134591
34
1573