@types/glue
TypeScript icon, indicating that this package has built-in type declarations

5.0.10 • Public • Published

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

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: Tue, 07 Nov 2023 20:08:00 GMT
  • Dependencies: @types/hapi, joi

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/glue

Weekly Downloads

215

Version

5.0.10

License

MIT

Unpacked Size

3.75 kB

Total Files

5

Last publish

Collaborators

  • types