Skip to content

A Raycast extension which help front-end devloper to convert _.protobuf file into _.d.ts file.

License

Notifications You must be signed in to change notification settings

7gugu/protobuf2typescript

Repository files navigation

Protobuf2TypeScript

A Raycast script which help front-end devloper to convert *.protobuf file into *.d.ts file.

Installtion Link

Screenshots

protobuf2typescript-1 protobuf2typescript-2 protobuf2typescript-3

Example

Convert this:

message Person {
  string name = 1;
  int32 id = 2;
  bool isFriend = 3;
  repeated PhoneNumber phones = 4;
}

message PhoneNumber {
  string number = 1;
  PhoneType type = 2;
}

message AddressBook {
  repeated Person people = 1;
}

into this:

interface Person {
  name: string;
  id: number;
  isFriend: boolean;
  phones: PhoneNumber[];
}

interface PhoneNumber {
  number: string;
  type: PhoneType;
}

interface AddressBook {
  people: Person[];
}

Idea From

About

A Raycast extension which help front-end devloper to convert _.protobuf file into _.d.ts file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published