struct2ts icon indicating copy to clipboard operation
struct2ts copied to clipboard

Strict mode on ToObject

Open arran4 opened this issue 4 years ago • 0 comments

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.

arran4 avatar Mar 14 '20 03:03 arran4