@@ -231,7 +231,7 @@ declare module 'react-intl' {
231
231
> ;
232
232
declare export var FormattedList : React_2 . FC <
233
233
IntlListFormatOptions & {
234
- value : React_2 . Node [ ] ,
234
+ value : React$ Node[ ] ,
235
235
...
236
236
} ,
237
237
> ;
@@ -240,10 +240,10 @@ declare module 'react-intl' {
240
240
[ key : string ] :
241
241
| PrimitiveType
242
242
| React_2 . ReactElement < >
243
- | FormatXMLElementFn < React_2 . Node , React_2 . Node > ,
243
+ | FormatXMLElementFn < React$ Node, React$ Node> ,
244
244
...,
245
245
} ,
246
- > mixins React_2 . Component < Props_3 < V > > {
246
+ > mixins React$ Component< Props_3 < V > > {
247
247
static displayName : string ;
248
248
shouldComponentUpdate ( nextProps : Props_3 < V > ) : boolean ;
249
249
render ( ) : React$Node ;
@@ -263,7 +263,7 @@ declare module 'react-intl' {
263
263
} ,
264
264
> ;
265
265
declare export var FormattedPlural : React_2 . FC < WithIntlProps < Props_2 >> & {
266
- WrappedComponent : React_2 . ComponentType < Props_2 > ,
266
+ WrappedComponent : React$ ComponentType< Props_2 > ,
267
267
...
268
268
} ;
269
269
declare export class FormattedRelativeTime mixins React_2 . PureComponent < Props , State_2 > {
@@ -325,23 +325,23 @@ declare module 'react-intl' {
325
325
parts : Array < string | T > ,
326
326
) => R ;
327
327
declare export function injectIntl < IntlPropName : string , P : WrappedComponentProps < IntlPropName >> (
328
- WrappedComponent : React_2 . ComponentType < P > ,
328
+ WrappedComponent : React$ ComponentType< P > ,
329
329
options ? : Opts < IntlPropName , false > ,
330
330
) : React_2 . FC < WithIntlProps < P >> & {
331
- WrappedComponent : React_2 . ComponentType < P > ,
331
+ WrappedComponent : React$ ComponentType< P > ,
332
332
...
333
333
} ;
334
334
declare export function injectIntl <
335
335
IntlPropName : string ,
336
336
P : WrappedComponentProps < IntlPropName > ,
337
- T : React_2 . ComponentType < P > ,
337
+ T : React$ ComponentType< P > ,
338
338
> (
339
- WrappedComponent : React_2 . ComponentType < P > ,
339
+ WrappedComponent : React$ ComponentType< P > ,
340
340
options ? : Opts < IntlPropName , true > ,
341
341
) : React_2 . ForwardRefExoticComponent <
342
342
React_2 . PropsWithoutRef < WithIntlProps < React_2 . PropsWithChildren < P >>> & React_2 . RefAttributes < T > ,
343
343
> & {
344
- WrappedComponent : React_2 . ComponentType < P > ,
344
+ WrappedComponent : React$ ComponentType< P > ,
345
345
...
346
346
} ;
347
347
declare export interface IntlCache {
@@ -357,7 +357,7 @@ declare module 'react-intl' {
357
357
locale : string ;
358
358
timeZone ?: string ;
359
359
formats : CustomFormats ;
360
- textComponent ?: React_2 . ComponentType < > | $Keys < React_2 . ReactHTML > ;
360
+ textComponent ?: React$ ComponentType< > | $Keys < React_2 . ReactHTML > ;
361
361
messages : { [ key : string ] : string , ... } | { [ key : string ] : MessageFormatElement [ ] , ... } ;
362
362
defaultLocale : string ;
363
363
defaultFormats : CustomFormats ;
@@ -372,8 +372,8 @@ declare module 'react-intl' {
372
372
| FormatError ,
373
373
) : void ;
374
374
}
375
- declare export var IntlContext : React_2 . Context < IntlShape > ;
376
- declare export interface IntlFormatters < T = React_2 . Node , R = T > {
375
+ declare export var IntlContext : React$ Context< IntlShape > ;
376
+ declare export interface IntlFormatters < T = React$ Node, R = T > {
377
377
formatDate (
378
378
value : $ElementType < Parameters < $PropertyType < Intl . DateTimeFormat , 'format' > > , 0 > | string,
379
379
opts ?: FormatDateOptions ,
@@ -413,10 +413,10 @@ declare module 'react-intl' {
413
413
) : string ;
414
414
formatMessage (
415
415
descriptor : MessageDescriptor ,
416
- values ?: { [ key : string ] : PrimitiveType | React_2 . Node | FormatXMLElementFn < T , R> , ... } ,
416
+ values ?: { [ key : string ] : PrimitiveType | React$ Node | FormatXMLElementFn < T , R> , ... } ,
417
417
) : React$Node ;
418
418
formatList ( values : Array < string > , opts ? : FormatListOptions ) : string ;
419
- formatList ( values : Array < string | React_2 . Node > , opts ? : FormatListOptions ) : React_2 . Node ;
419
+ formatList ( values : Array < string | React$ Node> , opts ? : FormatListOptions ) : React$ Node;
420
420
formatDisplayName (
421
421
value : $ElementType < Parameters < $PropertyType < DisplayNames , 'of' >> , 0 > ,
422
422
opts ? : FormatDisplayNameOptions ,
@@ -836,19 +836,19 @@ declare module 'react-intl' {
836
836
declare type Props_2 = {
837
837
value : number ,
838
838
intl : IntlShape ,
839
- other : React_2 . Node ,
840
- zero ?: React_2 . Node ,
841
- one ?: React_2 . Node ,
842
- two ?: React_2 . Node ,
843
- few ?: React_2 . Node ,
844
- many ?: React_2 . Node ,
845
- children ?: ( value : React_2 . Node ) => React_2 . ReactElement < > | null ,
839
+ other : React$ Node,
840
+ zero ?: React$ Node,
841
+ one ?: React$ Node,
842
+ two ?: React$ Node,
843
+ few ?: React$ Node,
844
+ many ?: React$ Node,
845
+ children ?: ( value : React$ Node) => React_2 . ReactElement < > | null ,
846
846
...
847
847
} & FormatPluralOptions ;
848
- declare type Props_3 < V : { [ key : string ] : any , ... } = { [ key : string ] : React_2 . Node , ... } > = {
848
+ declare type Props_3 < V : { [ key : string ] : any , ... } = { [ key : string ] : React$ Node, ... } > = {
849
849
values ?: V ,
850
850
tagName ?: React_2 . ElementType < any > ,
851
- children ?: ( ...nodes : React_2 . ReactNodeArray ) => React_2 . Node ,
851
+ children ?: ( ...nodes : React_2 . ReactNodeArray ) => React$ Node,
852
852
...
853
853
} & MessageDescriptor ;
854
854
declare export var RawIntlProvider : React_2 . Provider < IntlShape > ;
0 commit comments