mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Optimize imports.
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
import {Server} from "../server/server";
|
||||
import {ServerRegisterOptions} from "hapi";
|
||||
import {Server, ServerRegisterOptions} from "hapi";
|
||||
|
||||
export interface PluginsStates {
|
||||
[pluginName: string]: any;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {RouteOptions, ServerRealm, Util, Request} from "hapi";
|
||||
import {Request, RouteOptions, ServerRealm, Util} from "hapi";
|
||||
|
||||
/**
|
||||
* The request route information object, where:
|
||||
|
||||
+1
-8
@@ -1,15 +1,8 @@
|
||||
import * as stream from "stream";
|
||||
import * as url from "url";
|
||||
import * as http from "http";
|
||||
import {Server} from "../server/server";
|
||||
import {ResponseObject} from "../response/response-object";
|
||||
import {Util} from "../util/util";
|
||||
import {PluginsStates} from "../plugin/plugin";
|
||||
import {RequestRoute} from "./request-route";
|
||||
import {RequestAuth} from "./request-auth";
|
||||
import {RequestInfo} from "./request-info";
|
||||
import * as Podium from "podium";
|
||||
import {RequestEvents} from "hapi";
|
||||
import {PluginsStates, RequestAuth, RequestEvents, RequestInfo, RequestRoute, ResponseObject, Server, Util} from "hapi";
|
||||
|
||||
/**
|
||||
* An object containing the values of params, query, and payload before any validation modifications made. Only set when input validation is performed.
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import {PluginsStates} from "../plugin/plugin";
|
||||
import {ResponseSettings} from "./response-settings";
|
||||
import {ServerStateCookieOptions} from "../server/server-state-options";
|
||||
import * as Podium from "podium";
|
||||
import {Json, Lifecycle} from "hapi";
|
||||
import {ResponseEvents} from "./response-events";
|
||||
import {Json, Lifecycle, PluginsStates, ResponseEvents, ResponseSettings, ServerStateCookieOptions} from "hapi";
|
||||
|
||||
/**
|
||||
* Object where:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import {ServerRealm, ServerStateCookieOptions} from "hapi";
|
||||
import {ResponseObject} from "./response-object";
|
||||
import {ResponseObject, ServerRealm, ServerStateCookieOptions} from "hapi";
|
||||
|
||||
/**
|
||||
* See more about Lifecycle
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Util, Lifecycle} from "hapi";
|
||||
import {Lifecycle} from "hapi";
|
||||
|
||||
/**
|
||||
* The value must be one of:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Lifecycle, Util} from "hapi";
|
||||
import {Lifecycle} from "hapi";
|
||||
import {ValidationOptions} from "joi";
|
||||
|
||||
/**
|
||||
|
||||
+13
-12
@@ -1,15 +1,16 @@
|
||||
import {RouteOptionsAccess} from "./route-options-access";
|
||||
import {RouteOptionsCache} from "./route-options-cache";
|
||||
import {Util} from "../util/util";
|
||||
import {RouteOptionsCors} from "./route-options-cors";
|
||||
import {RouteOptionsResponse} from "./route-options-response";
|
||||
import {RouteOptionsPayload} from "./route-options-payload";
|
||||
import {RouteOptionsSecure} from "./route-options-secure";
|
||||
import {RouteOptionsValidate} from "./route-options-validate";
|
||||
import {PluginSpecificConfiguration} from "../plugin/plugin";
|
||||
import {Json} from "../util/json";
|
||||
import {RouteOptionsPreArray} from "./route-options-pre";
|
||||
import {Lifecycle} from "hapi";
|
||||
import {
|
||||
Json,
|
||||
Lifecycle,
|
||||
PluginSpecificConfiguration,
|
||||
RouteOptionsAccess,
|
||||
RouteOptionsCache,
|
||||
RouteOptionsCors,
|
||||
RouteOptionsPayload,
|
||||
RouteOptionsPreArray,
|
||||
RouteOptionsResponse,
|
||||
RouteOptionsSecure,
|
||||
RouteOptionsValidate
|
||||
} from "hapi";
|
||||
|
||||
/**
|
||||
* For context [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionscompression)
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import {Server} from "./server";
|
||||
import {ResponseToolkit} from "../response/response-toolkit";
|
||||
import {Request} from "../request/request";
|
||||
import {Lifecycle} from "hapi";
|
||||
import {Lifecycle, Request, ResponseToolkit, Server} from "hapi";
|
||||
|
||||
/**
|
||||
* The scheme options argument passed to server.auth.strategy() when instantiation a strategy.
|
||||
|
||||
+1
-4
@@ -1,7 +1,4 @@
|
||||
import {ServerAuthScheme} from "./server-auth-scheme";
|
||||
import {Request} from "../request/request";
|
||||
import {RouteOptionsAccess} from "hapi";
|
||||
import {Util} from "../util/util";
|
||||
import {Request, RouteOptionsAccess, ServerAuthScheme} from "hapi";
|
||||
|
||||
/**
|
||||
* The authentication credentials object
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {Server, Lifecycle} from "hapi";
|
||||
import {Lifecycle, Server} from "hapi";
|
||||
|
||||
/**
|
||||
* The extension point event name. The available extension points include the request extension points as well as the following server extension points:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {Request, PluginsStates} from "hapi";
|
||||
import {PluginsStates, Request} from "hapi";
|
||||
import * as Shot from "shot";
|
||||
|
||||
/**
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
import {ServerOptionsCache} from "./server-options-cache";
|
||||
import * as http from "http";
|
||||
import * as https from "https";
|
||||
import * as catbox from "catbox";
|
||||
import {MimosOptions} from "mimos";
|
||||
import {PluginSpecificConfiguration, RouteOptions} from "hapi";
|
||||
import {PluginSpecificConfiguration, RouteOptions, ServerOptionsCache} from "hapi";
|
||||
|
||||
/**
|
||||
* he server options control the behavior of the server object. Note that the options object is deeply cloned
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {PluginsStates} from "../plugin/plugin";
|
||||
import {PluginsStates} from "hapi";
|
||||
|
||||
/**
|
||||
* The realm object contains sandboxed server settings specific to each plugin or authentication strategy. When registering a plugin or an authentication scheme, a server object reference is provided with a new server.realm container specific to that registration. It allows each plugin to maintain its own settings without leaking and affecting other plugins.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import {Util, Lifecycle, Server} from "hapi";
|
||||
import {Lifecycle, Server, Util} from "hapi";
|
||||
|
||||
/**
|
||||
* A route configuration object or an array of configuration objects where each object contains:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Request} from "../request/request";
|
||||
import {Request} from "hapi";
|
||||
|
||||
/**
|
||||
* Optional cookie settings
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import {ServerStateCookieOptions} from "hapi";
|
||||
import {Util} from "hapi";
|
||||
|
||||
/**
|
||||
* A single object or an array of object where each contains:
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import * as Boom from "../../../../boom/index";
|
||||
import * as Boom from "boom";
|
||||
import * as stream from "stream";
|
||||
import {ResponseToolkit, Request} from "hapi";
|
||||
import {Request, ResponseToolkit} from "hapi";
|
||||
|
||||
export namespace Lifecycle {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user