6.1.9 • Published 6 months ago

@types/hapi__glue v6.1.9

Weekly downloads
1,669
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/hapi__glue

Summary

This package contains type definitions for @hapi/glue (https://github.com/hapijs/glue).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__glue.

index.d.ts

// Type definitions for @hapi/glue 6.1
// Project: https://github.com/hapijs/glue
// Definitions by: 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, 23 Dec 2021 23:34:48 GMT
  • Dependencies: @types/hapi__hapi
  • Global values: none

Credits

These definitions were written by Silas Rech, and Avery Fay.

6.1.8

7 months ago

6.1.7

8 months ago

6.1.9

6 months ago

6.1.6

1 year ago

6.1.5

2 years ago

6.1.4

3 years ago

6.1.3

3 years ago

6.1.2

4 years ago

6.1.1

4 years ago

6.1.0

5 years ago