protobuf.js version: 6.7.0
Hello!
We started experiencing failing builds this morning following the release of v6.7. With 6.7 in play we start to receive errors of this nature:
ERROR in ./src/stores/SomethingStore.ts
(66,65): error TS2345: Argument of type 'Something$Properties' is not assignable to parameter of type 'Something'.
Property 'toObject' is missing in type 'Something$Properties'.
It looks as though the generated classes which previously contained payloads of a given type, eg Something, now contain payloads of a type like Something$Properties. This may be more correct if the payloads received only contain the properties (I don't know if this is the case). Either way, this change has broken our code as it depends upon the entities being Something rather than Something$Properties.
We're going to pin to 6.6.5 for now since that should resolve our immediate issue. But I wanted to raise it as it seems to be "breaking changes" if only from the TypeScript angle.
Also I wanted to clarify whether: the new tooling is more correct now or if this is a bug? I'm sorry that I can't share any code beyond my example code above; I'm happy to answer questions though.
Thanks for all your work!
protobuf.js version: 6.7.0
Hello!
We started experiencing failing builds this morning following the release of v6.7. With 6.7 in play we start to receive errors of this nature:
It looks as though the generated classes which previously contained payloads of a given type, eg
Something, now contain payloads of a type likeSomething$Properties. This may be more correct if the payloads received only contain the properties (I don't know if this is the case). Either way, this change has broken our code as it depends upon the entities beingSomethingrather thanSomething$Properties.We're going to pin to 6.6.5 for now since that should resolve our immediate issue. But I wanted to raise it as it seems to be "breaking changes" if only from the TypeScript angle.
Also I wanted to clarify whether: the new tooling is more correct now or if this is a bug? I'm sorry that I can't share any code beyond my example code above; I'm happy to answer questions though.
Thanks for all your work!