Skip to content

Add code generion for TS client-side #4

Description

@TonEnfer

Add a protobuf compiler plugin that generates client-side code for TS clients.

It is necessary to implement support for generating a "proxy" client, as well as models. The target protocols at this stage are Json and MessagePack.

In the case of generating models for json, it should be possible to specify an additional parameter on how the field names should be formatted, as well as whether to generate code that converts field names from PascalCase to CamelCase and back.
For example, it may look like this:

static fromDto(dto: any): Model
{
    let result = new Model();

    result.field1 = dto["Field1"];

    return result;
}

toDto(): any
{
    var result : any = {};

    result["Field1"] = this.field1;

    return result;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions