Skip to content

Commit

Permalink
react-intl libdef: Make MessageDescriptor exact.
Browse files Browse the repository at this point in the history
An instance of zulip#3452.
  • Loading branch information
chrisbobbe authored and gnprice committed Jul 2, 2021
1 parent eaf2716 commit be63db7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions flow-typed/react-intl_vx.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,11 +676,11 @@ declare module 'react-intl' {
column: number;
}
// Changed from interface to type in TS to Flow translation
declare export type MessageDescriptor = {
declare export type MessageDescriptor = {|
id?: string | number,
description?: string | {| [key: string]: any |},
defaultMessage?: string,
};
|};
declare type MessageFormatElement =
| LiteralElement
| ArgumentElement
Expand Down Expand Up @@ -838,11 +838,12 @@ declare module 'react-intl' {
...
} & FormatPluralOptions;
declare type Props_3<V: {| [key: string]: any |} = {| [key: string]: React$Node |}> = {
...MessageDescriptor,
values?: V,
tagName?: React_2.ElementType<any>,
children?: (...nodes: React_2.ReactNodeArray) => React$Node,
...
} & MessageDescriptor;
};
declare export var RawIntlProvider: React_2.Provider<IntlShape>;
declare export class ReactIntlError<
T: $Values<typeof ReactIntlErrorCode> = typeof ReactIntlErrorCode.FORMAT_ERROR,
Expand Down

0 comments on commit be63db7

Please sign in to comment.