From 736654fdd3409f8c3ba1aeb97d732bba57936d0a Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Tue, 5 Feb 2019 13:52:41 +0100 Subject: [PATCH] add flow type for react-intl MessageDescriptor --- src/flowtype/npm/react-intl.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/flowtype/npm/react-intl.js diff --git a/src/flowtype/npm/react-intl.js b/src/flowtype/npm/react-intl.js new file mode 100644 index 00000000..85b77ec3 --- /dev/null +++ b/src/flowtype/npm/react-intl.js @@ -0,0 +1,14 @@ +export type MessageDescriptor = { + // A unique, stable identifier for the message + id: string, + + // The default message (probably in English) + defaultMessage: string, + + // Context for the translator about how it's used in the UI + description?: string | object, +}; + +export type Messages = { + [key: string]: MessageDescriptor +}; \ No newline at end of file