how to get typesafe namespace key #1562
Unanswered
raiyansarker
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 need to pass in a function to another function as a callback, the passed function has a parameter that is typed with the parameters
useTranslations
orgetMessages
have. Basically I've a zod schema function that receives thet
function from whatever the way is, in case of client, it would beuseTranslations
, on server, it isgetMessages
.How can I make the parameter typesafe?
something like this! any help?
Beta Was this translation helpful? Give feedback.
All reactions