Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error with term method after updating typescript to version 5.1.3 #19

Open
samueldelaporte opened this issue Jun 9, 2023 · 1 comment

Comments

@samueldelaporte
Copy link

After updating typescript from version 5.0.4 to 5.1.3, I'm getting a type error with the term method
Argument of type '[]' is not assignable to parameter of type 'never'.ts(2345)
on this kind of line : ${this.localize.term('MYKEY')}

I followed this implementation to get strongly typed translations and everything worked fine before the typescript update.

Is there a workaround to solve this ?

@claviska
Copy link
Member

TypeScript doesn't follow SemVer, and Shoelace is still on 4.9.4 (and this package is on 4.8.4). I'll see if we can get these upgraded to a more recent version for the next release.

I'm not sure what changes they've made, so it may or may not be a straightforward update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants