You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure I understand why Message.create si expected to return a Message of a Message of T.
Maybe I'm missing the point. I assume that a Message instance is the encodable representation of something - i.e. a reprosentation of something that can be passed to encode and is returned by decode.
Typically:
typeFoo={x: number;};constmessage=namespace.lookupType('Foo').create({x: 5});// return a Message<Foo> that can be encoded
Is it correct? If so, why is the returned type Message<Message<Foo>>?
The text was updated successfully, but these errors were encountered:
protobuf.js version: 7.4.4
I'm not sure I understand why
Message.create
si expected to return aMessage
of aMessage
ofT
.Maybe I'm missing the point. I assume that a Message instance is the encodable representation of something - i.e. a reprosentation of something that can be passed to
encode
and is returned bydecode
.Typically:
Is it correct? If so, why is the returned type
Message<Message<Foo>>
?The text was updated successfully, but these errors were encountered: