mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-12 09:38:09 +00:00
add flow type for react-intl MessageDescriptor
This commit is contained in:
parent
0a40933869
commit
736654fdd3
14
src/flowtype/npm/react-intl.js
vendored
Normal file
14
src/flowtype/npm/react-intl.js
vendored
Normal 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
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user