A Raycast script which help front-end devloper to convert *.protobuf file into *.d.ts file.
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[];
}