proto3-json-serializer
Version:
Support for proto3 JSON serialiazation/deserialization for protobuf.js
13 lines (12 loc) • 376 B
TypeScript
export type JSONValue = string | number | boolean | null | JSONValue[] | {
[key: string]: JSONValue;
};
export interface JSONObject {
[key: string]: JSONValue;
}
export type FromObjectValue = string | number | boolean | null | FromObjectValue[] | Buffer | Uint8Array | {
[key: string]: FromObjectValue;
};
export interface LongStub {
toString: () => string;
}