Get the latest tech news
Show HN: Zero-codegen, no-compile TypeScript type inference from Protobufs
Zero-codegen TypeScript `type` inference from protobuf `message`s - nathanhleung/protobuf-ts-types
Zero-codegen TypeScript type inference from protobuf message s. protobuf-ts-types lets you define language-agnostic message types in proto format, then infers TypeScript types from them with no additional codegen. If not using inline (i.e., literals in TypeScript) proto string s as const, probably requires a ts-patch compiler patch to import.proto files until microsoft/TypeScript#42219 is resolved service s and rpc s are not supported (only message s) oneof and map fields are not supported import s are not supported (for now, concatenate)
Or read this on Hacker News