We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you suggest please right types to work with typescript?
TS2322: Type 'string' is not assignable to type 'Record<string, string> | Record<string, MessageFormatElement[]>'.
The text was updated successfully, but these errors were encountered:
we're also getting this error
TS2559: Type 'string' has no properties in common with type 'MessageDescriptor'. 66 | 67 | const messages = defineMessages({
Because the react-intl is looking for a Message descriptor type, but we're just passing strings messageKey: 'messageValue'
Sorry, something went wrong.
Ran into the same issue. You need to add a reference to the types from this plugin.
Just create a d.ts file (e.g. src/env.d.ts) with the following content:
d.ts
src/env.d.ts
/// <reference types="babel-plugin-react-intl-auto" />
No branches or pull requests
Can you suggest please right types to work with typescript?
The text was updated successfully, but these errors were encountered: