@@ -119,9 +119,9 @@ declare module 'react-intl' {
119
119
props : any ,
120
120
) => React . ReactElement <
121
121
any ,
122
- string | any | ( ( props : any ) => React . Component < any , any , any > ) ,
122
+ string | any | ( ( props : any ) => React$ Component < any , any , any > ) ,
123
123
> | null )
124
- | ( ( props : any ) => React . Component < any , any , any > ) ,
124
+ | ( ( props : any ) => React$ Component < any , any , any > ) ,
125
125
> | null ,
126
126
...
127
127
} ,
@@ -147,7 +147,7 @@ declare module 'react-intl' {
147
147
}
148
148
declare export var FormattedList : React . FC <
149
149
IntlListFormatOptions & {
150
- value : React . Node [ ] ,
150
+ value : React$ Node [ ] ,
151
151
...
152
152
} ,
153
153
> ;
@@ -200,7 +200,7 @@ declare module 'react-intl' {
200
200
...
201
201
} & React . RefAttributes < any > ,
202
202
> & {
203
- WrappedComponent : React . ComponentType < Props_2 > ,
203
+ WrappedComponent : React$ ComponentType < Props_2 > ,
204
204
...
205
205
} ;
206
206
// changed `mixins` to `extends` in Flow to TS translation
@@ -237,9 +237,9 @@ declare module 'react-intl' {
237
237
props : any ,
238
238
) => React . ReactElement <
239
239
any ,
240
- string | any | ( ( props : any ) => React . Component < any , any , any > ) ,
240
+ string | any | ( ( props : any ) => React$ Component < any , any , any > ) ,
241
241
> | null )
242
- | ( ( props : any ) => React . Component < any , any , any > ) ,
242
+ | ( ( props : any ) => React$ Component < any , any , any > ) ,
243
243
> | null ,
244
244
...
245
245
} ,
@@ -274,23 +274,23 @@ declare module 'react-intl' {
274
274
}
275
275
declare type FormatXMLElementFn = ( ...args : any [ ] ) => string | { [ key : string ] : any } ;
276
276
declare export function injectIntl < IntlPropName : string , P : WrappedComponentProps < IntlPropName > > (
277
- WrappedComponent : React . ComponentType < P > ,
277
+ WrappedComponent : React$ ComponentType < P > ,
278
278
options ? : Opts < IntlPropName , false > ,
279
279
) : React . FC < WithIntlProps < P >> & {
280
- WrappedComponent : React . ComponentType < P > ,
280
+ WrappedComponent : React$ ComponentType < P > ,
281
281
...
282
282
} ;
283
283
declare export function injectIntl <
284
284
IntlPropName : string ,
285
285
P : WrappedComponentProps < IntlPropName > ,
286
- T : React . ComponentType < P > ,
286
+ T : React$ ComponentType < P > ,
287
287
> (
288
- WrappedComponent : React . ComponentType < P > ,
288
+ WrappedComponent : React$ ComponentType < P > ,
289
289
options ? : Opts < IntlPropName , true > ,
290
290
) : React . ForwardRefExoticComponent <
291
291
React . PropsWithoutRef < WithIntlProps < P >> & React . RefAttributes < T > ,
292
292
> & {
293
- WrappedComponent : React . ComponentType < P > ,
293
+ WrappedComponent : React$ ComponentType < P > ,
294
294
...
295
295
} ;
296
296
declare export interface IntlCache {
@@ -306,7 +306,7 @@ declare module 'react-intl' {
306
306
locale : string ;
307
307
timeZone ?: string ;
308
308
formats : CustomFormats ;
309
- textComponent ?: React . ComponentType < > | $Keys < React . ReactHTML > ;
309
+ textComponent ?: React$ ComponentType < > | $Keys < React . ReactHTML > ;
310
310
messages : { [ key : string ] : string , ... } | { [ key : string ] : MessageFormatElement [ ] , ... } ;
311
311
defaultLocale : string ;
312
312
defaultFormats : CustomFormats ;
@@ -363,9 +363,9 @@ declare module 'react-intl' {
363
363
formatHTMLMessage (
364
364
descriptor : MessageDescriptor ,
365
365
values ?: { [ key : string ] : PrimitiveType , ... } ,
366
- ) : React . Node ,
366
+ ) : React$ Node ,
367
367
formatList ( values : Array < string > , opts ?: FormatListOptions ) : string ,
368
- formatList ( values : Array < string | React . Node > , opts ?: FormatListOptions ) : React . Node ,
368
+ formatList ( values : Array < string | React$ Node > , opts ?: FormatListOptions ) : React$ Node ,
369
369
formatDisplayName (
370
370
value : $ElementType < Parameters < $PropertyType < DisplayNames , 'of' > > , 0 > ,
371
371
opts ?: FormatDisplayNameOptions ,
@@ -709,19 +709,19 @@ declare module 'react-intl' {
709
709
declare type Props_2 = {
710
710
value : number ,
711
711
intl : IntlShape ,
712
- other : React . Node ,
713
- zero ?: React . Node ,
714
- one ?: React . Node ,
715
- two ?: React . Node ,
716
- few ?: React . Node ,
717
- many ?: React . Node ,
718
- children ?: ( value : React . Node ) => React . ReactElement < > | null ,
712
+ other : React$ Node ,
713
+ zero ?: React$ Node ,
714
+ one ?: React$ Node ,
715
+ two ?: React$ Node ,
716
+ few ?: React$ Node ,
717
+ many ?: React$ Node ,
718
+ children ?: ( value : React$ Node ) => React . ReactElement < > | null ,
719
719
...
720
720
} & FormatPluralOptions ;
721
- declare type Props_3 < V : { [ key : string ] : any , ... } = { [ key : string ] : React . Node , ... } > = {
721
+ declare type Props_3 < V : { [ key : string ] : any , ... } = { [ key : string ] : React$ Node , ... } > = {
722
722
values ?: V ,
723
723
tagName ?: React . ElementType < any > ,
724
- children ?: ( ...nodes : React . ReactNodeArray ) => React . Node ,
724
+ children ?: ( ...nodes : React . ReactNodeArray ) => React$ Node ,
725
725
...
726
726
} & MessageDescriptor ;
727
727
declare export var RawIntlProvider : React . Provider < IntlShape > ;
0 commit comments