QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.2k stars 54 forks source link

How to infer useScopedI18n type? #297

Closed mamlzy closed 7 months ago

mamlzy commented 7 months ago

I made type like this below, the question is, am i correct?

image

then I got the correct types:

image

but if I scoped other than yup it does not give me type error

image

here is my en.ts file:

image
QuiiBz commented 7 months ago

Could you share a reproduction with the code?

QuiiBz commented 7 months ago

Closing as stale.