localize icon indicating copy to clipboard operation
localize copied to clipboard

Type error with term method after updating typescript to version 5.1.3

Open samueldelaporte opened this issue 2 years ago • 1 comments

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 ?

samueldelaporte avatar Jun 09 '23 09:06 samueldelaporte

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.

claviska avatar Jun 12 '23 15:06 claviska