localize
localize copied to clipboard
Type error with term method after updating typescript to version 5.1.3
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 ?
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.