protobuf.js version: 6.6.5
First, thank you for including typescript support! I was delighted to discover that I could stop using https://github.com/sintef-9012/Proto2TypeScript.
However, there are a few problems with the generated and bundled TS definitions:
protobuf.js version: 6.6.5
First, thank you for including typescript support! I was delighted to discover that I could stop using https://github.com/sintef-9012/Proto2TypeScript.
However, there are a few problems with the generated and bundled TS definitions:
interface Longmakes it impossible to chainLongmethods on fields; e.g.d.timestampNanos.toNumber()becomesd.timestampNanos as Long).toNumber()generated typeof certain numeric fields isnumber|Long, which also makes it impossible to chainLongmethods; i.e. it becomes necessary to coalesce or cast toLongbefore being able to use the field value.Buffer, which is only available in Node.js. In CockroachDB we are using protobuf.js in the browser, and would like to avoid including type definitions for Node.js types which will not be available at run time.