Browse Source

Fix decorator doc

David Catuhe 7 years ago
parent
commit
6413edf7dd
3 changed files with 9426 additions and 9388 deletions
  1. 7 2
      Tools/Gulp/gulp-validateTypedoc.js
  2. 9415 9386
      dist/preview release/babylon.d.ts
  3. 4 0
      src/Tools/babylon.decorators.ts

+ 7 - 2
Tools/Gulp/gulp-validateTypedoc.js

@@ -289,7 +289,7 @@ Validate.prototype.validateTypedocNamespaces = function (namespaces) {
         this.validateNaming(null, containerNode);
 
         // Validate Comments.
-        if (isPublic && !this.validateComment(containerNode)) {            
+        if (isPublic && !this.validateComment(containerNode)) {      
             this.errorCallback(null,
                 containerNode.name,
                 containerNode.kindString,
@@ -448,7 +448,7 @@ Validate.prototype.validateComment = function(node) {
     // Return true for overwrited properties
     if (node.overwrites) {
         return true;
-    }
+    } 
 
     // Check comments.
     if (node.comment) {
@@ -459,6 +459,11 @@ Validate.prototype.validateComment = function(node) {
         return false;
     }
 
+    // Return true for inherited properties (need to check signatures)
+    if (node.kindString === "Function") {
+        return true;
+    }
+
     return false;
 }
 

File diff suppressed because it is too large
+ 9415 - 9386
dist/preview release/babylon.d.ts


+ 4 - 0
src/Tools/babylon.decorators.ts

@@ -183,6 +183,10 @@
         return generateSerializableMember(10, sourceName); // quaternion member
     }
 
+    /**
+     * Decorator used to define property that can be serialized as reference to a camera
+     * @param sourceName defines the name of the property to decorate
+     */
     export function serializeAsCameraReference(sourceName?: string) {
         return generateSerializableMember(11, sourceName); // camera reference member
     }