UNPKG

pbjs

Version:

A minimal implementation of Google Protocol Buffers for JavaScript

12 lines (9 loc) 234 B
export interface ParsedSchema { compile(): any; toJavaScript(options?: JsOptions): string; toTypeScript(): string; } export interface JsOptions { es6?: boolean; } export function parseSchema(contents: string): ParsedSchema;