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