We can also use third party libraries in our Threejs applications.
The dat.GUI is another very useful tool that we can use to learn about Three.js as it allows us to quickly add a very basic user interface to interact with our 3d scene and the objects within it.
We can install the dat.GUI from its official repository.
npm install dat.gui@latest --save-dev
We should also install the latest dat.GUI type declarations.
npm install @types/dat.gui@latest --save-dev
Warning
Note that there was a problem with @types/dat.gui@0.7.9 which caused auto inferring Three.js types to no longer work. This made the definition very hard work with. This was corrected in @types/dat.gui@0.7.10. Ensure you have the latest version. npm install @types/dat.gui@latest