Manual fixes for TypeScript definitions file.  Not Complete, more to come