Skip to content

Reflect enums? #15

@dvisztempacct

Description

@dvisztempacct

Using grpc.load() which seems to use protobufjs 5 gives me access to my enum definitions.

For example, I can do something like this:

> grpc.load('assemblyline.proto').assemblyline.WidgetColor
{ WIDGET_COLOR_UNPAINTED: 0,
  WIDGET_COLOR_RED: 1,
  WIDGET_COLOR_GREEN: 2 }

But when I use @grpc/proto-loader I can't find the enums.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions