How to properly type tm, rt functions? #1692
Unanswered
ConorMurphy21
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
-
I have some code that looks like this
My goal is to get this code to work, preferably using the global methods with the options API.
I've tried adding the global type declaration:
I've also tried using the composition style
useI18n<{message: typeof en}>
. But I keep getting: 'key does not exist on type 'never' (when using global $tm) and 'number' when using useI18n.Any help is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions