Просмотр исходного кода

Eslint: preferType limitation (#30555)

Co-authored-by: Samuel Rigaud <srigaud@duodisplay.com>
Samuel Rigaud 11 месяцев назад
Родитель
Сommit
4473f14308
3 измененных файлов с 5 добавлено и 5 удалено
  1. 1 1
      src/core/Object3D.js
  2. 1 1
      src/materials/Material.js
  3. 3 3
      src/textures/Texture.js

+ 1 - 1
src/core/Object3D.js

@@ -1194,7 +1194,7 @@ class Object3D extends EventDispatcher {
 	/**
 	/**
 	 * Serializes the 3D object into JSON.
 	 * Serializes the 3D object into JSON.
 	 *
 	 *
-	 * @param {?(Object|String)} meta - An optional value holding meta information about the serialization.
+	 * @param {?(Object|string)} meta - An optional value holding meta information about the serialization.
 	 * @return {Object} A JSON object representing the serialized 3D object.
 	 * @return {Object} A JSON object representing the serialized 3D object.
 	 * @see {@link ObjectLoader#parse}
 	 * @see {@link ObjectLoader#parse}
 	 */
 	 */

+ 1 - 1
src/materials/Material.js

@@ -581,7 +581,7 @@ class Material extends EventDispatcher {
 	/**
 	/**
 	 * Serializes the material into JSON.
 	 * Serializes the material into JSON.
 	 *
 	 *
-	 * @param {?(Object|String)} meta - An optional value holding meta information about the serialization.
+	 * @param {?(Object|string)} meta - An optional value holding meta information about the serialization.
 	 * @return {Object} A JSON object representing the serialized material.
 	 * @return {Object} A JSON object representing the serialized material.
 	 * @see {@link ObjectLoader#parse}
 	 * @see {@link ObjectLoader#parse}
 	 */
 	 */

+ 3 - 3
src/textures/Texture.js

@@ -443,7 +443,7 @@ class Texture extends EventDispatcher {
 	/**
 	/**
 	 * Serializes the texture into JSON.
 	 * Serializes the texture into JSON.
 	 *
 	 *
-	 * @param {?(Object|String)} meta - An optional value holding meta information about the serialization.
+	 * @param {?(Object|string)} meta - An optional value holding meta information about the serialization.
 	 * @return {Object} A JSON object representing the serialized texture.
 	 * @return {Object} A JSON object representing the serialized texture.
 	 * @see {@link ObjectLoader#parse}
 	 * @see {@link ObjectLoader#parse}
 	 */
 	 */
@@ -666,7 +666,7 @@ Texture.DEFAULT_IMAGE = null;
  * The default mapping for all textures.
  * The default mapping for all textures.
  *
  *
  * @static
  * @static
- * @type {Number}
+ * @type {number}
  * @default UVMapping
  * @default UVMapping
  */
  */
 Texture.DEFAULT_MAPPING = UVMapping;
 Texture.DEFAULT_MAPPING = UVMapping;
@@ -675,7 +675,7 @@ Texture.DEFAULT_MAPPING = UVMapping;
  * The default anisotropy value for all textures.
  * The default anisotropy value for all textures.
  *
  *
  * @static
  * @static
- * @type {Number}
+ * @type {number}
  * @default 1
  * @default 1
  */
  */
 Texture.DEFAULT_ANISOTROPY = 1;
 Texture.DEFAULT_ANISOTROPY = 1;

粤ICP备19079148号