core: `google.protobuf.Timestamp` converted to string when sent to frontend
Description
I have an object of google.protobuf.Timestamp type that I return from my Go code and want to work with in from within frontend part of my package (that uses Type Script language). Now… the Type Script interface generated for my Go object suggests that my object is represented with google.protobouf.ITimestamp type but when I debug what I’m actually dealing with it turns out that the timestamp is of string type.
Expected Behavior
My Go object is represented in TS as a real google.protobuf.ITimestamp type with its seconds and nanoseconds fields set accordingly.
Actual Behavior
My Go object is represented in TS as a string with the following format: 2020-009-22T04:28:36.894497Z
Since needs-more-info label was added here let me reference a line of code that works with a timestamps passed from within a backend layer. It can be found here - pls notice how I need to cast the object of autogenerated google.protobouf.ITimestamp type to string (I need to do this since even thought the autogenerated code suggests that I work with google.protobouf.ITimestamp the object is of a string type).