vytant / stimulus-decorators

TypeScript decorators for the Stimulus framework
https://npm.im/@vytant/stimulus-decorators
MIT License
12 stars 2 forks source link

TS1238: Unable to resolve signature of class decorator when called as an expression.   The runtime will invoke the decorator with 2 arguments, but the decorator expects 1. #3

Open jasonfb opened 1 year ago

jasonfb commented 1 year ago

building a new app with @hotwired/stimulus 3.2.1 if I add @vytant/stimulus-decorators 1.1.0

then add @TypedController to above

export default class extends Controller {

typescript complains with

TS1238: Unable to resolve signature of class decorator when called as an expression.   The runtime will invoke the decorator with 2 arguments, but the decorator expects 1.

is this the expected behavior?

jasonfb commented 1 year ago

Screenshot 2023-08-17 at 7 19 12 PM