Skip to content

在线体验 ​

左边编辑 proto,右边实时显示生成的 TypeScript。在类型定义和 HTTP 客户端两个标签之间切换,对比两种输出。

浏览器端生成器

在线体验的类型生成跑的是轻量浏览器实现,覆盖常见 proto3 特性,但和 CLI 输出(CLI 走 ts-proto + protoc)可能略有出入。客户端部分则和 CLI 完全一致。

proto
types.ts

Type generation in the browser uses a lightweight implementation and may differ slightly from the CLI output (ts-proto). Client output is identical.