UNPKG

proto3-json-serializer

Version:

Support for proto3 JSON serialiazation/deserialization for protobuf.js

11 lines (10 loc) 377 B
import * as protobuf from 'protobufjs'; import { FromObjectValue } from './types'; export interface Timestamp { seconds: number; nanos?: number; } export declare function googleProtobufTimestampToProto3JSON(obj: protobuf.Message & Timestamp): string; export declare function googleProtobufTimestampFromProto3JSON(json: string): { [key: string]: FromObjectValue; };