@formatjs/intl
Advanced tools
Comparing version 1.3.1 to 1.3.2
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/19/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-base | ||
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/3257/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-base | ||
// composite: false | ||
@@ -4,0 +4,0 @@ // declaration: true |
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/21/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-esm | ||
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/3254/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-esm | ||
// composite: false | ||
@@ -4,0 +4,0 @@ // declaration: true |
@@ -5,3 +5,3 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
onError: OnErrorFn; | ||
}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options?: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined; | ||
}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined; | ||
//# sourceMappingURL=displayName.d.ts.map |
@@ -12,3 +12,2 @@ import { filterProps } from './utils'; | ||
var locale = _a.locale, onError = _a.onError; | ||
if (options === void 0) { options = {}; } | ||
var DisplayNames = Intl.DisplayNames; | ||
@@ -15,0 +14,0 @@ if (!DisplayNames) { |
@@ -50,3 +50,3 @@ import { IntlMessageFormat, Formats, PrimitiveType, FormatXMLElementFn, FormatError } from 'intl-messageformat'; | ||
formatList(values: Array<string | T>, opts?: FormatListOptions): T | string | Array<string | T>; | ||
formatDisplayName(value: Parameters<DisplayNames['of']>[0], opts?: FormatDisplayNameOptions): string | undefined; | ||
formatDisplayName(value: Parameters<DisplayNames['of']>[0], opts: FormatDisplayNameOptions): string | undefined; | ||
} | ||
@@ -53,0 +53,0 @@ export interface Formatters { |
{ | ||
"name": "@formatjs/intl", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -32,10 +32,10 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "^1.2.1", | ||
"@formatjs/intl-displaynames": "^3.3.7", | ||
"@formatjs/intl-listformat": "^4.2.6", | ||
"@formatjs/intl-relativetimeformat": "^7.2.6", | ||
"@formatjs/ecma402-abstract": "^1.2.2", | ||
"@formatjs/intl-displaynames": "^3.3.8", | ||
"@formatjs/intl-listformat": "^4.2.7", | ||
"@formatjs/intl-relativetimeformat": "^7.2.7", | ||
"fast-memoize": "^2.5.2", | ||
"intl-messageformat": "^9.3.7", | ||
"intl-messageformat-parser": "^6.0.6" | ||
"intl-messageformat": "^9.3.8", | ||
"intl-messageformat-parser": "^6.0.7" | ||
} | ||
} |
@@ -5,3 +5,3 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
onError: OnErrorFn; | ||
}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options?: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined; | ||
}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined; | ||
//# sourceMappingURL=displayName.d.ts.map |
@@ -15,3 +15,2 @@ "use strict"; | ||
var locale = _a.locale, onError = _a.onError; | ||
if (options === void 0) { options = {}; } | ||
var DisplayNames = Intl.DisplayNames; | ||
@@ -18,0 +17,0 @@ if (!DisplayNames) { |
@@ -50,3 +50,3 @@ import { IntlMessageFormat, Formats, PrimitiveType, FormatXMLElementFn, FormatError } from 'intl-messageformat'; | ||
formatList(values: Array<string | T>, opts?: FormatListOptions): T | string | Array<string | T>; | ||
formatDisplayName(value: Parameters<DisplayNames['of']>[0], opts?: FormatDisplayNameOptions): string | undefined; | ||
formatDisplayName(value: Parameters<DisplayNames['of']>[0], opts: FormatDisplayNameOptions): string | undefined; | ||
} | ||
@@ -53,0 +53,0 @@ export interface Formatters { |
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
128249
2006