Jan @amann.work · Nov 19

I've encountered one hurdle though: TypeScript currently has a limitation where it infers values of imported JSON files as loose strings. To bridge this gap for the time being, next-intl can optionally create an accompanying declaration file for your messages during `next dev` and `next build`.

0 likes 1 replies

?

Replies

Jan · Nov 19

I hope that TypeScript will address https://github.com/microsoft/TypeScript/issues/32063 in an upcoming release though, so we can support typed ICU arguments without an additional declaration file in the future 😌