|
@@ -11,15 +11,15 @@
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
<p>
|
|
|
- three.js is a JavaScript-based library. However, it's possible to use three.js in a TypeScript project, as the library
|
|
|
- exposes [link:https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html TypeScript declaration files] (*.d.ts* files).
|
|
|
+ three.js is a JavaScript-based library. However, it's possible to use it in a TypeScript project, as the library
|
|
|
+ exposes [link:https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html Declaration Files] (*d.ts* files).
|
|
|
</p>
|
|
|
|
|
|
<p>
|
|
|
A minimal configuration is required for the TypeScript compiler to
|
|
|
discover three.js types.<br>
|
|
|
You will need to set the [link:https://www.typescriptlang.org/docs/handbook/module-resolution.html moduleResolution]
|
|
|
- option to *node*, and the [link:https://www.typescriptlang.org/docs/handbook/compiler-options.html target] to *es6* or newer.
|
|
|
+ option to *node*, and the [link:https://www.typescriptlang.org/docs/handbook/compiler-options.html target] option to *es6* or newer.
|
|
|
</p>
|
|
|
|
|
|
<code>
|
|
@@ -39,7 +39,7 @@
|
|
|
|
|
|
<p>
|
|
|
Note: It happens that some declarations are incorrect and/or missing.
|
|
|
- Contributing to Types Declaration Files is really helpful for the community, making three.js
|
|
|
+ Contributing to Declaration Files is really helpful for the community, making three.js
|
|
|
typings better and more accurate.
|
|
|
</p>
|
|
|
</body>
|