intl-messageformat
Advanced tools
Comparing version 10.0.1 to 10.1.0
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import { MessageFormatElement } from '@formatjs/icu-messageformat-parser'; | ||
declare global { | ||
namespace FormatjsIntl { | ||
interface Message { | ||
} | ||
interface IntlConfig { | ||
} | ||
interface Formats { | ||
} | ||
} | ||
} | ||
declare type Format<Source = string> = Source extends keyof FormatjsIntl.Formats ? FormatjsIntl.Formats[Source] : string; | ||
export interface Formats { | ||
number: Record<string, NumberFormatOptions>; | ||
date: Record<string, Intl.DateTimeFormatOptions>; | ||
time: Record<string, Intl.DateTimeFormatOptions>; | ||
number: Record<Format<'number'>, NumberFormatOptions>; | ||
date: Record<Format<'date'>, Intl.DateTimeFormatOptions>; | ||
time: Record<Format<'time'>, Intl.DateTimeFormatOptions>; | ||
} | ||
@@ -35,2 +46,3 @@ export interface FormatterCache { | ||
export declare type FormatXMLElementFn<T, R = string | T | Array<string | T>> = (parts: Array<string | T>) => R; | ||
export {}; | ||
//# sourceMappingURL=formatters.d.ts.map |
{ | ||
"name": "intl-messageformat", | ||
"version": "10.0.1", | ||
"version": "10.1.0", | ||
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.", | ||
@@ -34,5 +34,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "1.11.6", | ||
"@formatjs/fast-memoize": "1.2.3", | ||
"@formatjs/icu-messageformat-parser": "2.1.2", | ||
"@formatjs/ecma402-abstract": "1.11.7", | ||
"@formatjs/fast-memoize": "1.2.4", | ||
"@formatjs/icu-messageformat-parser": "2.1.3", | ||
"tslib": "2.4.0" | ||
@@ -39,0 +39,0 @@ }, |
import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
import { MessageFormatElement } from '@formatjs/icu-messageformat-parser'; | ||
declare global { | ||
namespace FormatjsIntl { | ||
interface Message { | ||
} | ||
interface IntlConfig { | ||
} | ||
interface Formats { | ||
} | ||
} | ||
} | ||
declare type Format<Source = string> = Source extends keyof FormatjsIntl.Formats ? FormatjsIntl.Formats[Source] : string; | ||
export interface Formats { | ||
number: Record<string, NumberFormatOptions>; | ||
date: Record<string, Intl.DateTimeFormatOptions>; | ||
time: Record<string, Intl.DateTimeFormatOptions>; | ||
number: Record<Format<'number'>, NumberFormatOptions>; | ||
date: Record<Format<'date'>, Intl.DateTimeFormatOptions>; | ||
time: Record<Format<'time'>, Intl.DateTimeFormatOptions>; | ||
} | ||
@@ -35,2 +46,3 @@ export interface FormatterCache { | ||
export declare type FormatXMLElementFn<T, R = string | T | Array<string | T>> = (parts: Array<string | T>) => R; | ||
export {}; | ||
//# sourceMappingURL=formatters.d.ts.map |
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
295962
8682
+ Added@formatjs/ecma402-abstract@1.11.7(transitive)
+ Added@formatjs/fast-memoize@1.2.4(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.3(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.9(transitive)
+ Added@formatjs/intl-localematcher@0.2.28(transitive)
- Removed@formatjs/ecma402-abstract@1.11.6(transitive)
- Removed@formatjs/fast-memoize@1.2.3(transitive)
- Removed@formatjs/icu-messageformat-parser@2.1.2(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.8(transitive)
- Removed@formatjs/intl-localematcher@0.2.27(transitive)
Updated@formatjs/fast-memoize@1.2.4