Fix typo in server connection object interface name. Changed ISeverConnectionOptions to IServerConnectionOptions and used the type in test file to prove it is working

This commit is contained in:
Loc Nguyen
2015-07-13 01:44:13 -07:00
parent 38c6ccfde0
commit ab710e1ba0
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -4,9 +4,9 @@ import Hapi = require("hapi");
// Create a server with a host and port
var server = new Hapi.Server();
server.connection({
server.connection(<Hapi.IServerConnectionOptions>{
host: "localhost",
port: 8000,
port: 8000
});
// Add plugins
@@ -24,7 +24,7 @@ plugin.register.attributes = {
// optional options parameter
server.register({}, function (err) {});
// optional options.routes.vhost parameter
// optional options.routes.vhost parameter
server.register({}, { select: 'api', routes: { prefix: '/prefix' } }, function (err) {});
//server.pack.register(plugin, (err: Object) => {