1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-13 20:08:56 +00:00

add flow type for react-intl MessageDescriptor

This commit is contained in:
slowbackspace 2019-02-05 13:52:41 +01:00
parent 0a40933869
commit 736654fdd3

14
src/flowtype/npm/react-intl.js vendored Normal file
View File

@ -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
};