Skip to content

map definitions are values #624

@crackcomm

Description

@crackcomm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions