5.0.10 • Published 2 years ago
@types/glue v5.0.10
Installation
npm install --save @types/glue
Summary
This package contains type definitions for glue (https://github.com/hapijs/glue).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/glue.
index.d.ts
// Type definitions for glue 5.0
// Project: https://github.com/hapijs/glue
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Server, ServerOptions } from "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 Plugin {
plugin: string | {
register: string;
options?: any;
};
options?: any;
routes?: any;
}
export interface Manifest {
server: ServerOptions;
register?: {
plugins: string[] | Plugin[] | Array<(string|Plugin)>
} | undefined;
}
export function compose(manifest: Manifest, options?: Options): Promise<Server>;
Additional Details
- Last updated: Thu, 23 Dec 2021 23:34:44 GMT
- Dependencies: @types/hapi
- Global values: none
Credits
These definitions were written by DefinitelyTyped.