Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

typed references and subcollections #25

@ribrdb

Description

@ribrdb

I've started working on a protobuf code generator to create typescript models. One feature I need is to be able to specify the type of a reference or subcollection. I'm thinking something like this:

message Foo {...}
message Bar {
  Foo fooref = 1 [(protofire.options).reference = true];
  map<string, Foo> foocol = 2 [(protofire.options).subcollection = true];
}

This would generate something like:

interface Bar {
  fooref: Reference<Foo>
  foocol: Collection<Foo>

Would this be something you'd be interested in supporting, or does it make more sense for us to have our own rules generator?

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