typescript definition updates

The first commit updated the `ScaleManager.onResize` callback to be a interfaced function (was using `function` which is not a typescript type and caused an error).

The second commit changes all "Object" types into "any". Object is not any plain object with any properties, it is strictly a base Object instance with only the base properties. This causes errors when you try to pass objects that do not match that. Or, when the return type is Object and you try to access a property that exists, but typescript thinks it does not.

I'm considering making a generator that will use the doc comments to generate this file, because I am already tired of updating it :) What doc syntax do you conform to?