You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then implement the code in the "message distribution" step of the FormatJS docs. The messages prop of the AuthProvider expects the following type: (JSX attribute) messages?: Record<string, string> | Record<string, MessageFormatElement[]> | undefined but no MessageFormatElement type is exported by react-intl.
Expected behavior
There should be an exported type that can be used to type the compiled messages that are generated by formatjs.
Screenshots
Note: It looks like there used to be some type guidance in the docs, but it was wrong, so it was removed. See #1900
The text was updated successfully, but these errors were encountered:
Which package?
react-intl
Describe the bug
There is no exported type for compiled messages.
To Reproduce
Implement the code in the "message distribution" part of the docs and try to add a type for
props.messages
.Reproducible Steps/Repo
Generate some compiled translations using the
formatjs
command. Resulting object looks roughly like:Then implement the code in the "message distribution" step of the FormatJS docs. The
messages
prop of theAuthProvider
expects the following type:(JSX attribute) messages?: Record<string, string> | Record<string, MessageFormatElement[]> | undefined
but noMessageFormatElement
type is exported byreact-intl
.Expected behavior
There should be an exported type that can be used to type the compiled messages that are generated by
formatjs
.Screenshots
Note: It looks like there used to be some type guidance in the docs, but it was wrong, so it was removed. See #1900
The text was updated successfully, but these errors were encountered: