Types not identified correctly for $t in Typescript codebase #129
-
Hello @jarda-svoboda I am getting following error in VS-Code when using ![]() Corresponding plural string "awards": "You have {{award:gt; 0:{{not won any awards}} {{award; 1:won exactly {{award}} award; default:won {{award}} awards}}; default:not won any awards}}!", Although functionality works correctly and there are no errors thrown at build and compile time, it's just my VSCode that is annoying me. Configuration: package.json "dependencies" : {
"sveltekit-i18n": "latest"
} tsconfig "compilerOptions": {
"types": ["vite/client", "svelte", "sveltekit-i18n"]
} Can you please let me know how to fix them, looking upto examples didn't help as they are not configured in TS! |
Beta Was this translation helpful? Give feedback.
Answered by
jarda-svoboda
Jul 17, 2023
Replies: 1 comment
-
Hi @aakash14goplani! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aakash14goplani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @aakash14goplani!
You can add your custom types this way.