Dynamic message keys #1607
Unanswered
henrikbossart
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have am trying to get the mesages dynamically like this:
But am having a hard time doing it because TypeScript can't stop complaining about it. It works if I explicitly define the variable to be a certain key.
Is there some way I can type or cast this to work with dynamic keys?
Any help is highly appreciated! 🙏
Beta Was this translation helpful? Give feedback.
All reactions