Skip to content

vkurchatkin/proto-descriptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proto-descriptor

Utilites for converting protobuf descriptors (e.g. from GRPC reflection) to protobuf.js descriptors.

API

  • convertFileDescriptorSet(buffer: Uint8Array): Root - decode binary FileDescriptorSet into protobuf.js Root;
  • convertFileDescriptor(buffer: Uint8Array): Root - decode binary FileDescriptorProto into protobuf.js Root;
  • addFromFileDescriptorSet(root: Root, buffer: Uint8Array) - add definitions from binary FileDescriptorSet into existing protobuf.js Root;
  • addFromFileDescriptor(root: Root, buffer: Uint8Array) - add definitions from binary FileDescriptorProto into existing protobuf.js Root;
  • function resolveAll(root: Root) - resolve types and apply necessary postprocessing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published