intl-messageformat
Advanced tools
Comparing version 10.2.2 to 10.2.4
@@ -13,3 +13,3 @@ import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
} | ||
declare type Format<Source = string> = Source extends keyof FormatjsIntl.Formats ? FormatjsIntl.Formats[Source] : string; | ||
type Format<Source = string> = Source extends keyof FormatjsIntl.Formats ? FormatjsIntl.Formats[Source] : string; | ||
export interface Formats { | ||
@@ -42,8 +42,8 @@ number: Record<Format<'number'>, NumberFormatOptions>; | ||
} | ||
export declare type MessageFormatPart<T> = LiteralPart | ObjectPart<T>; | ||
export declare type PrimitiveType = string | number | boolean | null | undefined | Date; | ||
export type MessageFormatPart<T> = LiteralPart | ObjectPart<T>; | ||
export type PrimitiveType = string | number | boolean | null | undefined | Date; | ||
export declare function isFormatXMLElementFn<T>(el: PrimitiveType | T | FormatXMLElementFn<T>): el is FormatXMLElementFn<T>; | ||
export declare function formatToParts<T>(els: MessageFormatElement[], locales: string | string[], formatters: Formatters, formats: Formats, values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>, currentPluralValue?: number, originalMessage?: string): MessageFormatPart<T>[]; | ||
export declare type FormatXMLElementFn<T, R = string | T | (string | T)[]> = (parts: Array<string | T>) => R; | ||
export type FormatXMLElementFn<T, R = string | T | (string | T)[]> = (parts: Array<string | T>) => R; | ||
export {}; | ||
//# sourceMappingURL=formatters.d.ts.map |
{ | ||
"name": "intl-messageformat", | ||
"version": "10.2.2", | ||
"version": "10.2.4", | ||
"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.14.0", | ||
"@formatjs/ecma402-abstract": "1.14.2", | ||
"@formatjs/fast-memoize": "1.2.6", | ||
"@formatjs/icu-messageformat-parser": "2.1.11", | ||
"@formatjs/icu-messageformat-parser": "2.1.13", | ||
"tslib": "2.4.0" | ||
@@ -39,0 +39,0 @@ }, |
@@ -13,3 +13,3 @@ import { NumberFormatOptions } from '@formatjs/ecma402-abstract'; | ||
} | ||
declare type Format<Source = string> = Source extends keyof FormatjsIntl.Formats ? FormatjsIntl.Formats[Source] : string; | ||
type Format<Source = string> = Source extends keyof FormatjsIntl.Formats ? FormatjsIntl.Formats[Source] : string; | ||
export interface Formats { | ||
@@ -42,8 +42,8 @@ number: Record<Format<'number'>, NumberFormatOptions>; | ||
} | ||
export declare type MessageFormatPart<T> = LiteralPart | ObjectPart<T>; | ||
export declare type PrimitiveType = string | number | boolean | null | undefined | Date; | ||
export type MessageFormatPart<T> = LiteralPart | ObjectPart<T>; | ||
export type PrimitiveType = string | number | boolean | null | undefined | Date; | ||
export declare function isFormatXMLElementFn<T>(el: PrimitiveType | T | FormatXMLElementFn<T>): el is FormatXMLElementFn<T>; | ||
export declare function formatToParts<T>(els: MessageFormatElement[], locales: string | string[], formatters: Formatters, formats: Formats, values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>, currentPluralValue?: number, originalMessage?: string): MessageFormatPart<T>[]; | ||
export declare type FormatXMLElementFn<T, R = string | T | (string | T)[]> = (parts: Array<string | T>) => R; | ||
export type FormatXMLElementFn<T, R = string | T | (string | T)[]> = (parts: Array<string | T>) => R; | ||
export {}; | ||
//# sourceMappingURL=formatters.d.ts.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
226745
+ Added@formatjs/ecma402-abstract@1.14.2(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.13(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.17(transitive)
- Removed@formatjs/ecma402-abstract@1.14.0(transitive)
- Removed@formatjs/icu-messageformat-parser@2.1.11(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.15(transitive)