@formatjs/utils 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  * @param countryCode country code (alpha-2)
4
4
  * @returns default currency code, or USD if not found
5
5
  */
6
- export declare function defaultCurrency(countryCode?: string): string | undefined;
6
+ export declare function defaultCurrency(countryCode?: string): string;
7
7
  /**
8
8
  * Look up countries using a default currency.
9
9
  * @param currencyCode currency code (ISO 4217)
@@ -3,4 +3,4 @@
3
3
  * @param countryCode country code (alpha-2)
4
4
  * @returns default locale, or en if not found
5
5
  */
6
- export declare function defaultLocale(countryCode?: string): string | undefined;
6
+ export declare function defaultLocale(countryCode?: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/utils",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Collection of useful intl utilities",
5
5
  "main": "index.js",
6
6
  "module": "lib/index.js",
@@ -3,7 +3,7 @@
3
3
  * @param countryCode country code (alpha-2)
4
4
  * @returns default currency code, or USD if not found
5
5
  */
6
- export declare function defaultCurrency(countryCode?: string): string | undefined;
6
+ export declare function defaultCurrency(countryCode?: string): string;
7
7
  /**
8
8
  * Look up countries using a default currency.
9
9
  * @param currencyCode currency code (ISO 4217)
@@ -3,4 +3,4 @@
3
3
  * @param countryCode country code (alpha-2)
4
4
  * @returns default locale, or en if not found
5
5
  */
6
- export declare function defaultLocale(countryCode?: string): string | undefined;
6
+ export declare function defaultLocale(countryCode?: string): string;