I'm programming against a web api that, for some of the fields, only returns them if you specify them in the query.
{a:"hello", b:"world", c:"of goo", d:"i am always present"}
and I called
api.getResponse(["a","b"])
I would get
{a:"hello", b:"world", d:"i am always present"}
in response.
How do i express that in the type language of typescript?