next-intl 4.0.0-beta-40d535a → 4.0.0-beta-77949ef

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.
@@ -1,10 +1,22 @@
1
1
  import { createFormatter } from 'use-intl/core';
2
2
  declare function getFormatterCachedImpl(config: Parameters<typeof createFormatter>[0]): {
3
- dateTime: (value: Date | number, formatOrOptions?: string | import("use-intl/core").DateTimeFormatOptions) => string;
4
- number: (value: number | bigint, formatOrOptions?: string | import("use-intl/core").NumberFormatOptions) => string;
3
+ dateTime: {
4
+ (value: Date | number, options?: import("use-intl/core").DateTimeFormatOptions): string;
5
+ (value: Date | number, format?: string, options?: import("use-intl/core").DateTimeFormatOptions): string;
6
+ };
7
+ number: {
8
+ (value: number | bigint, options?: import("use-intl/core").NumberFormatOptions): string;
9
+ (value: number | bigint, format?: string, options?: import("use-intl/core").NumberFormatOptions): string;
10
+ };
5
11
  relativeTime: (date: number | Date, nowOrOptions?: import("use-intl/core").RelativeTimeFormatOptions["now"] | import("use-intl/core").RelativeTimeFormatOptions) => string;
6
- list: <Value extends string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>(value: Iterable<Value>, formatOrOptions?: string | Intl.ListFormatOptions) => Value extends string ? string : Iterable<import("react").ReactElement>;
7
- dateTimeRange: (start: Date | number, end: Date | number, formatOrOptions?: string | import("use-intl/core").DateTimeFormatOptions) => string;
12
+ list: {
13
+ <Value extends string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>(value: Iterable<Value>, options?: Intl.ListFormatOptions): Value extends string ? string : Iterable<import("react").ReactElement>;
14
+ <Value extends string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>(value: Iterable<Value>, format?: string, options?: Intl.ListFormatOptions): Value extends string ? string : Iterable<import("react").ReactElement>;
15
+ };
16
+ dateTimeRange: {
17
+ (start: Date | number, end: Date | number, options?: import("use-intl/core").DateTimeFormatOptions): string;
18
+ (start: Date | number, end: Date | number, format?: string, options?: import("use-intl/core").DateTimeFormatOptions): string;
19
+ };
8
20
  };
9
21
  declare const getFormatterCached: typeof getFormatterCachedImpl;
10
22
  export default getFormatterCached;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intl",
3
- "version": "4.0.0-beta-40d535a",
3
+ "version": "4.0.0-beta-77949ef",
4
4
  "sideEffects": false,
5
5
  "author": "Jan Amann <jan@amann.work>",
6
6
  "funding": [
@@ -112,7 +112,7 @@
112
112
  "dependencies": {
113
113
  "@formatjs/intl-localematcher": "^0.5.4",
114
114
  "negotiator": "^1.0.0",
115
- "use-intl": "4.0.0-beta-40d535a"
115
+ "use-intl": "4.0.0-beta-77949ef"
116
116
  },
117
117
  "peerDependencies": {
118
118
  "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
@@ -124,5 +124,5 @@
124
124
  "optional": true
125
125
  }
126
126
  },
127
- "gitHead": "036819e56a60031af2e0ef875916954dd6cc944d"
127
+ "gitHead": "1c5f6e1ccef3db9cff75f14da2a590329faf03cf"
128
128
  }