UNPKG

proto3-json-serializer

Version:

Support for proto3 JSON serialiazation/deserialization for protobuf.js

5 lines (4 loc) 345 B
import * as protobuf from 'protobufjs'; import { FromObjectValue, JSONValue } from './types'; export declare function fromProto3JSONToInternalRepresentation(type: protobuf.Type | protobuf.Enum | string, json: JSONValue): FromObjectValue; export declare function fromProto3JSON(type: protobuf.Type, json: JSONValue): protobuf.Message<{}> | null;