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
The output will generate the map entry to be Date.fromJSON and Date.fromPartial:
exportconstSimpleWithMap={fromJSON(object: any): SimpleWithMap{
...
if(object.mapOfTimestamps!==undefined&&object.mapOfTimestamps!==null){Object.entries(object.mapOfTimestamps).forEach(([key,value])=>{message.mapOfTimestamps[key]=Date.fromJSON(value);// Property 'fromJSON' does not exist on type 'DateConstructor'})}returnmessage;},fromPartial(object: DeepPartial<SimpleWithMap>): SimpleWithMap{
...
if(object.mapOfTimestamps!==undefined&&object.mapOfTimestamps!==null){Object.entries(object.mapOfTimestamps).forEach(([key,value])=>{if(value!==undefined){message.mapOfTimestamps[key]=Date.fromPartial(value);// Property 'fromPartial' does not exist on type 'DateConstructor'}})}returnmessage;},}
The text was updated successfully, but these errors were encountered:
If this was added to
SimpleWithMap
message SimpleWithMap { map<int32, Entity> entitiesById = 1; map<string, string> nameLookup = 2; map<int32, int32> intLookup = 3; + map<string, google.protobuf.Timestamp> mapOfTimestamps = 4; }
The output will generate the map entry to be
Date.fromJSON
andDate.fromPartial
:The text was updated successfully, but these errors were encountered: