type errors on addEventListener
for any class that extends from EventDispatcher
#387
Labels
bug
Something isn't working
@types/three
version: from 0.168.0three-stdlib
version: 2.34.0Problem description:
@types/three
introduced on v168 the breaking change thatunknown
events can no longer be dispatched inEventDispatcher
(source).Relevant code:
So now this will throw TS errors:
Suggested solution:
One easy way would be to upgrade
@types/three
and then update any classes that extend fromEventDispatcher
.But I don't think that will work if we want to maintain backward compatibility?
Another option is to maintain a copy of the latest
EventDispatcher
and use that instead? I guess that would sort backwards compatibility?The text was updated successfully, but these errors were encountered: