Skip to Content
protoc-gen-pothosGenerated Code ReferenceOverview

Generated Code Reference

Reference documentation for the TypeScript code generated by protoc-gen-pothos.

Choose Your Runtime

Select your protobuf runtime for the complete generated code reference:

RuntimeDescription
ts-protoUses $type property for type discrimination, oneof fields accessed directly
protobuf-es-v1Uses instanceof for type discrimination, includes $toProto helper functions
protobuf-esUses isMessage() and create() functions, Schema-based API