File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,18 @@ function generateToken(i: number): string {
15
15
return `${ now } _${ i } _${ now } ` ;
16
16
}
17
17
18
+ export function formatList (
19
+ { locale, onError} : Pick < IntlConfig , 'locale' | 'onError' > ,
20
+ getListFormat : Formatters [ 'getListFormat' ] ,
21
+ values : Array < string > ,
22
+ options : Parameters < IntlFormatters [ 'formatList' ] > [ 1 ]
23
+ ) : string
18
24
export function formatList (
19
25
{ locale, onError} : Pick < IntlConfig , 'locale' | 'onError' > ,
20
26
getListFormat : Formatters [ 'getListFormat' ] ,
21
27
values : Parameters < IntlFormatters [ 'formatList' ] > [ 0 ] ,
22
28
options : Parameters < IntlFormatters [ 'formatList' ] > [ 1 ] = { }
23
- ) : string | React . ReactNode {
29
+ ) : React . ReactNode {
24
30
const ListFormat : typeof IntlListFormat = ( Intl as any ) . ListFormat ;
25
31
if ( ! ListFormat ) {
26
32
onError (
You can’t perform that action at this time.
0 commit comments