فهرست منبع

change to check typedoc string across multiple d.ts files

Kacey Coley 7 سال پیش
والد
کامیت
188c7c3faa
2فایلهای تغییر یافته به همراه10 افزوده شده و 2 حذف شده
  1. 9 1
      Tools/Gulp/gulp-validateTypedoc.js
  2. 1 1
      src/Particles/babylon.gpuParticleSystem.ts

+ 9 - 1
Tools/Gulp/gulp-validateTypedoc.js

@@ -238,7 +238,15 @@ Validate.prototype.getContents = function () {
  * Validate a TypeDoc JSON file
  */
 Validate.prototype.validateTypedoc = function (json) {
-    var namespaces = json.children[0].children;
+    for (var i = 0; i < json.children.length; i++) {
+        var namespaces = json.children[i].children;
+        this.validateTypedocNamespaces(namespaces);
+    }
+}
+/**
+ * Validate namespaces attach to a declaration file from a TypeDoc JSON file
+ */
+Validate.prototype.validateTypedocNamespaces = function (namespaces) {
     var namespace = null;
 
     var containerNode;

+ 1 - 1
src/Particles/babylon.gpuParticleSystem.ts

@@ -10,7 +10,7 @@
         public id: string;
 
         /**
-         * The friendluname of the Particle system.
+         * The friendly name of the Particle system.
          */
         public name: string;