anyone familiar with this error: [code with error message][1] [1]: https://i.stack.imgur.com/SbJvu.png
{t(`${settingType}` as const)}
error:
No overload matches this call.
Overload 1 of 2, '(key: TemplateStringsArray | Normalize<{
Thanks :)
anyone familiar with this error: [code with error message][1] [1]: https://i.stack.imgur.com/SbJvu.png
{t(`${settingType}` as const)}
error:
No overload matches this call.
Overload 1 of 2, '(key: TemplateStringsArray | Normalize<{
Thanks :)
Solution: change t(str) to t(str as unknown as TemplateStringArray)
I personally created a helper function to do so, which I recommend.