@types/hapi__glue
Advanced tools
Comparing version 6.1.3 to 6.1.4
@@ -13,4 +13,4 @@ // Type definitions for @hapi/glue 6.1 | ||
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) | undefined; | ||
preRegister?: ((Server: Server, next: (err: any) => void) => void) | undefined; | ||
} | ||
@@ -28,5 +28,5 @@ | ||
plugins: string[] | PluginObject[] | Array<(string|PluginObject)> | ||
}; | ||
} | undefined; | ||
} | ||
export function compose(manifest: Manifest, options?: Options): Promise<Server>; |
{ | ||
"name": "@types/hapi__glue", | ||
"version": "6.1.3", | ||
"version": "6.1.4", | ||
"description": "TypeScript definitions for @hapi/glue", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__glue", | ||
"license": "MIT", | ||
@@ -35,4 +36,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "dc5521482648fb4a583f0caa90e9caad65a41723e1695113ebafa506a868f811", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "67744e00d21ede46d17c9d6a2c56e39fa31a8e92224d259f0766e3f290fbb3a8", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,39 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__glue. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__glue/index.d.ts) | ||
````ts | ||
// Type definitions for @hapi/glue 6.1 | ||
// Project: https://github.com/hapijs/glue | ||
// Definitions by: Gareth Parker <https://github.com/garfty> | ||
// Silas Rech <https://github.com/lenovouser> | ||
// Avery Fay <https://github.com/btmorex> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
import { Plugin, Server, ServerOptions } from "@hapi/hapi"; | ||
export interface Options { | ||
relativeTo: string; | ||
preConnections?: ((Server: Server, next: (err: any) => void) => void) | undefined; | ||
preRegister?: ((Server: Server, next: (err: any) => void) => void) | undefined; | ||
} | ||
export interface PluginObject { | ||
plugin: string | Plugin<any>; | ||
options?: any; | ||
routes?: any; | ||
} | ||
export interface Manifest { | ||
server: ServerOptions; | ||
register?: { | ||
plugins: string[] | PluginObject[] | Array<(string|PluginObject)> | ||
} | undefined; | ||
} | ||
export function compose(manifest: Manifest, options?: Options): Promise<Server>; | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 14 Jan 2021 20:56:25 GMT | ||
* Last updated: Thu, 08 Jul 2021 14:22:43 GMT | ||
* Dependencies: [@types/hapi__hapi](https://npmjs.com/package/@types/hapi__hapi) | ||
@@ -14,0 +48,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5015
0
51