Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map definitions are values #624

Closed
crackcomm opened this issue Jan 6, 2017 · 0 comments
Closed

map definitions are values #624

crackcomm opened this issue Jan 6, 2017 · 0 comments

Comments

@crackcomm
Copy link

crackcomm commented Jan 6, 2017

protobuf.js version: 6.4.4

message Example {
  map<string, string> ctx = 1;
}
# This is how definitions were generated:
pbjs -t static-module flow/flow.proto > flow/flow.js
pbts flow/flow.js > flow/flow.d.ts

This is annotation for the map<string, string> ctx = 1;

/**
 * @type {string}
 */
$prototype.ctx = $protobuf.util.emptyObject;
/**
 * @type {string}
 */
ctx: string;

I also tested with value being another message and it's the same.

@crackcomm crackcomm changed the title pbts – map definitions are values map definitions are values Jan 6, 2017
@dcodeIO dcodeIO closed this as completed in f303049 Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant