UNPKG

proto3-json-serializer

Version:

Support for proto3 JSON serialiazation/deserialization for protobuf.js

9 lines (8 loc) 299 B
import * as protobuf from 'protobufjs'; export interface FieldMask { paths: string[]; } export declare function googleProtobufFieldMaskToProto3JSON(obj: protobuf.Message & FieldMask): string; export declare function googleProtobufFieldMaskFromProto3JSON(json: string): { paths: string[]; };