Skip to content

Commit 5a6feb4

Browse files
committed
Generate enum TypeScript typings.
Fixes #836.
1 parent 952c7d1 commit 5a6feb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/targets/static.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ function buildEnum(ref, enm) {
677677
push("");
678678
var comment = [
679679
enm.comment || enm.name + " enum.",
680-
enm.parent instanceof protobuf.Root ? "@exports " + escapeName(enm.name) : undefined,
680+
enm.parent instanceof protobuf.Root ? "@exports " + escapeName(enm.name) : "@memberof " + exportName(enm.parent),
681681
config.forceEnumString ? "@enum {number}" : "@enum {string}",
682682
];
683683
Object.keys(enm.values).forEach(function(key) {

0 commit comments

Comments
 (0)