Typed induced API fixes

A bunch of fixes to the API docs based on the result of parsing `data.json` to extract a TypeScript definition for YUI.