I'm looking for the latest three/index.d.ts

Hi there,

I’m looking for the latest three/index.d.ts that supports for r98.
Does anyone know where I could get it ?
So far I’m using index.d.ts at https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three


That is the latest version of three.d.ts that exists. The thing is that Three.js and DefinitelyTyped are different entities, so whenever there’s a new Three revision, it takes some time for the TypeScript community to make updates to its definition files.

What declarations have you found that are outdated from r98?

I couldn’t find a declaration of THREE.Water() .

Ah, yes. Reason for this is that THREE.Water is not part of the core Three.js library, but it’s part of the /examples folder, which contains a lot of non-essential and possibly seldom-used add-ons. Finding definitions for stuff in the examples is rare sometimes for this reason.

However, you could write your own definitions by looking at its source! https://github.com/mrdoob/three.js/blob/master/examples/js/objects/Water2.js