Typescript definitions for common freedomjs APIs