From be63db74c2fd93198c84c0c56fdd1d395662555c Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Tue, 29 Jun 2021 23:09:29 -0400 Subject: [PATCH] react-intl libdef: Make `MessageDescriptor` exact. An instance of #3452. --- flow-typed/react-intl_vx.x.x.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flow-typed/react-intl_vx.x.x.js b/flow-typed/react-intl_vx.x.x.js index 6ed1c6d7e22..3b88fbf57da 100644 --- a/flow-typed/react-intl_vx.x.x.js +++ b/flow-typed/react-intl_vx.x.x.js @@ -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 @@ -838,11 +838,12 @@ declare module 'react-intl' { ... } & FormatPluralOptions; declare type Props_3 = { + ...MessageDescriptor, values?: V, tagName?: React_2.ElementType, children?: (...nodes: React_2.ReactNodeArray) => React$Node, ... - } & MessageDescriptor; + }; declare export var RawIntlProvider: React_2.Provider; declare export class ReactIntlError< T: $Values = typeof ReactIntlErrorCode.FORMAT_ERROR,