add flow type for react-intl MessageDescriptor

pull/402/head^2
slowbackspace 5 years ago
parent 0a40933869
commit 736654fdd3

@ -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
};
Loading…
Cancel
Save