Updating hapi.d.ts to support optional parameters when registering a plugin

This commit is contained in:
Adam Carr
2015-03-30 16:19:10 -04:00
parent f8f1b95d00
commit 48de82851f
2 changed files with 9 additions and 1 deletions
+6
View File
@@ -21,6 +21,12 @@ plugin.register.attributes = {
version: "1.0.0"
};
// optional options parameter
server.register({}, function (err) {});
// optional options.routes.vhost parameter
server.register({}, { select: 'api', routes: { prefix: '/prefix' } }, function (err) {});
//server.pack.register(plugin, (err: Object) => {
// if (err) { throw err; }
//});