Open
Description
@types/three
version: from 0.168.0three-stdlib
version: 2.34.0
Problem description:
@types/three
introduced on v168 the breaking change that unknown
events can no longer be dispatched in EventDispatcher
(source).
Relevant code:
So now this will throw TS errors:
import { OrbitControls } from "three-stdlib";
const orbit = new OrbitControls();
orbit.addEventListener("start", ()=> console.log('started'));
// Argument of type 'string' is not assignable to parameter of type 'never'.
Activity