|
|
@@ -109,21 +109,10 @@ npm install --save-dev vite
|
|
|
</p>
|
|
|
</details>
|
|
|
<details>
|
|
|
- <summary>Améliorez l'auto-complétion de votre éditeur avec <i>jsconfig</i> ou <i>tsconfig</i></summary>
|
|
|
+ <summary>Using three.js with TypeScript</summary>
|
|
|
<p>
|
|
|
- Placez un fichier <i>jsconfig.json</i> (ou <i>tsconfig.json</i> pour les projets TypeScript) à la racine de votre projet. L'ajout de la configuration ci-dessous aide votre éditeur à localiser les fichiers three.js pour une auto-complétion améliorée.
|
|
|
+ Community-maintained TypeScript type definitions for three.js are available at [link:https://github.com/three-types/three-ts-types three-types/three-ts-types].
|
|
|
</p>
|
|
|
-<pre class="prettyprint notranslate lang-js" translate="no">
|
|
|
-{
|
|
|
- "compilerOptions": {
|
|
|
- // other options...
|
|
|
- "paths": {
|
|
|
- "three/webgpu": ["node_modules/three/build/three.webgpu.js"],
|
|
|
- "three/tsl": ["node_modules/three/build/three.tsl.js"],
|
|
|
- },
|
|
|
- }
|
|
|
-}
|
|
|
-</pre>
|
|
|
</details>
|
|
|
</aside>
|
|
|
</li>
|