Skip to content

Commit 3e7e4fc

Browse files
committed
pbjs: Removed type/ns alias comment in static target to not confuse jsdoc unnecessarily
1 parent 99ad9cc commit 3e7e4fc

12 files changed

+5
-18
lines changed

cli/targets/static.js

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ function buildNamespace(ref, ns) {
8787
return;
8888
if (ns.name !== "") {
8989
push("");
90-
push("/** @alias " + ns.fullName.substring(1) + " */");
9190
push(name(ref) + "." + name(ns.name) + " = (function() {");
9291
++indent;
9392
}

dist/protobuf.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/protobuf.min.js.gz

0 Bytes
Binary file not shown.

dist/runtime/protobuf.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/runtime/protobuf.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/runtime/protobuf.min.js.gz

0 Bytes
Binary file not shown.

tests/data/ambiguous-names.js

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var $lazyTypes = [];
88
// Exported root namespace
99
var $root = {};
1010

11-
/** @alias A */
1211
$root.A = (function() {
1312

1413
/**
@@ -139,7 +138,6 @@ $root.A = (function() {
139138
return A;
140139
})();
141140

142-
/** @alias B */
143141
$root.B = (function() {
144142

145143
/**

tests/data/mapbox/vector_tile.js

-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var $lazyTypes = [];
88
// Exported root namespace
99
var $root = {};
1010

11-
/** @alias vector_tile */
1211
$root.vector_tile = (function() {
1312

1413
/**
@@ -18,7 +17,6 @@ $root.vector_tile = (function() {
1817
*/
1918
var vector_tile = {};
2019

21-
/** @alias vector_tile.Tile */
2220
vector_tile.Tile = (function() {
2321

2422
/**
@@ -166,7 +164,6 @@ $root.vector_tile = (function() {
166164
POLYGON: 3
167165
};
168166

169-
/** @alias vector_tile.Tile.Value */
170167
Tile.Value = (function() {
171168

172169
/**
@@ -393,7 +390,6 @@ $root.vector_tile = (function() {
393390
return Value;
394391
})();
395392

396-
/** @alias vector_tile.Tile.Feature */
397393
Tile.Feature = (function() {
398394

399395
/**
@@ -607,7 +603,6 @@ $root.vector_tile = (function() {
607603
return Feature;
608604
})();
609605

610-
/** @alias vector_tile.Tile.Layer */
611606
Tile.Layer = (function() {
612607

613608
/**

tests/data/package.js

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var $lazyTypes = [];
88
// Exported root namespace
99
var $root = {};
1010

11-
/** @alias Package */
1211
$root.Package = (function() {
1312

1413
/**
@@ -468,7 +467,6 @@ $root.Package = (function() {
468467
/* eslint-enable */
469468
})();
470469

471-
/** @alias Package.Repository */
472470
Package.Repository = (function() {
473471

474472
/**

tests/data/rpc.js

-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var $lazyTypes = [];
88
// Exported root namespace
99
var $root = {};
1010

11-
/** @alias MyService */
1211
$root.MyService = (function() {
1312

1413
/**
@@ -74,7 +73,6 @@ $root.MyService = (function() {
7473
return MyService;
7574
})();
7675

77-
/** @alias MyRequest */
7876
$root.MyRequest = (function() {
7977

8078
/**
@@ -205,7 +203,6 @@ $root.MyRequest = (function() {
205203
return MyRequest;
206204
})();
207205

208-
/** @alias MyResponse */
209206
$root.MyResponse = (function() {
210207

211208
/**

types/protobuf.js.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// $> pbts --name protobufjs --out types/protobuf.js.d.ts src
2-
// Generated Mon, 19 Dec 2016 22:48:40 UTC
2+
// Generated Mon, 19 Dec 2016 23:08:18 UTC
33
declare module "protobufjs" {
44

55
/**

0 commit comments

Comments
 (0)