Hook callbacks should have (err, object) interface.
Making possible to add types and other items from JSON files.