I\'m trying to write a Typescript library that I\'d like to be able to include when targeting both the browser and Node. I have two problems: referring to platform-specific typ