diff --git a/types/glue/index.d.ts b/types/glue/index.d.ts
index 39b339e575..e4dfb76e92 100644
--- a/types/glue/index.d.ts
+++ b/types/glue/index.d.ts
@@ -4,18 +4,22 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
+///
+
import { Server, ServerOptions } from "hapi";
+// import hapi = require('hapi');
+
export interface Options {
relativeTo: string;
- preConnections?: (Server:Server, next:(err:any)=>void ) => void;
- preRegister?: (Server:Server, next:(err:any)=>void ) => void;
+ preConnections?: (Server: Server, next:( err: any ) => void ) => void;
+ preRegister?: (Server: Server, next:( err: any ) => void ) => void;
}
interface Plugin {
plugin: string | {
- register:string;
- options?:any;
+ register: string;
+ options?: any;
};
options?: any;
routes?: any
@@ -24,9 +28,8 @@ interface Plugin {
interface Manifest {
server: ServerOptions;
register?: {
- plugins: Array
- }
+ plugins: Plugin[]
+ };
}
export function compose(manifest: Manifest, options?: Options): Server;
-