Skip to content

Commit

Permalink
Docs: Added a hint on documenting .proto files for static code
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Jan 12, 2017
1 parent c280a4a commit 9e360ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ protobuf.load("bundle.json", function(err, root) {
});
```

**ProTip!** Documenting your .proto files with `/** ... */`-blocks translates to generated static code.

### Generating TypeScript definitions from static modules

Likewise, the `pbts` command line utility can be used to generate TypeScript definitions from `pbjs`-generated static modules.
Expand Down
4 changes: 1 addition & 3 deletions tests/data/comments.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ message Test2 {
*/
enum Test3 {

/**
* Value with a comment.
*/
/** Value with a comment. */
ONE = 1;

// Value with no comment.
Expand Down

0 comments on commit 9e360ea

Please sign in to comment.