mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
+3
-3
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user