mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Updating hapi.d.ts to support optional parameters when registering a plugin
This commit is contained in:
@@ -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; }
|
||||
//});
|
||||
|
||||
Reference in New Issue
Block a user