protobuf.js
protobuf.js copied to clipboard
Why Any uses type_url instead of typeUrl?
protobuf.js version: v7.0.0
Why Any uses type_url field instead of typeUrl?
// works
const any = Any.create({
type_url: `'type.googleapis.com/foobar',
value: buffer,
});
// type url is missing
const any = Any.create({
typeUrl: `'type.googleapis.com/foobar',
value: buffer,
});
Declaration: https://github.com/protobufjs/protobuf.js/blob/64811d5878c31e4a86a39da5fec6aea35da22fcd/index.d.ts#L16-L19
The actual executed definition of Any is https://github.com/protobufjs/protobuf.js/blob/master/src/common.js#L43-L65
Hi! Any chance it could be fixed?