Skip to content

Commit

Permalink
Other: Various jsdoc improvements and a workaround for d.ts generatio…
Browse files Browse the repository at this point in the history
…n, see #592
  • Loading branch information
dcodeIO committed Dec 29, 2016
1 parent 39a2ea3 commit 31da56c
Show file tree
Hide file tree
Showing 46 changed files with 5,183 additions and 321 deletions.
9 changes: 3 additions & 6 deletions cli/targets/json-module.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
"use strict";
module.exports = json_module;

var path = require("path"),
fs = require("fs"),
util = require("../util");

var protobuf = require("../..");
var util = require("../util");

json_module.description = "JSON representation as a module"

Expand All @@ -17,6 +13,7 @@ function json_module(root, options, callback) {
callback(null, output);
});
} catch (e) {
callback(e);
return callback(e);
}
return undefined;
}
2 changes: 1 addition & 1 deletion cli/targets/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function buildType(ref, type) {
var prop = util.safeProp(field.name);
pushComment([
type.name + " " + field.name + ".",
prop.charAt(0) !== "." ? "@name " + fullName + "#" + name(field.name) : null,
prop.charAt(0) !== "." ? "@name " + fullName + "#" + field.name : null,
"@type {" + jsType + "}"
]);
if (Array.isArray(field.defaultValue)) {
Expand Down
Loading

0 comments on commit 31da56c

Please sign in to comment.