struct2ts
struct2ts copied to clipboard
Strict mode on ToObject
I would like the ability to only export fields defined by the typescript. Type script doesn't seem to have a native way to do this as of the version I'm using (but there are a couple of promising things) so I imagine it might need to be a modification of the toObject function to be more aware I guess.
In my specific case I'm using it for communicating an object back and forwards between the two applications but some JS libraries seem to be contaminating the object.