@types/next
Advanced tools
+44
-42
@@ -13,52 +13,54 @@ // Type definitions for next 2.4 | ||
| type UrlLike = url.UrlObject | url.Url; | ||
| namespace next { | ||
| type UrlLike = url.UrlObject | url.Url; | ||
| interface ServerConfig { | ||
| // known keys | ||
| webpack?: any; | ||
| webpackDevMiddleware?: any; | ||
| poweredByHeader?: boolean; | ||
| distDir?: string; | ||
| assetPrefix?: string; | ||
| configOrigin?: string; | ||
| useFileSystemPublicRoutes?: boolean; | ||
| interface ServerConfig { | ||
| // known keys | ||
| webpack?: any; | ||
| webpackDevMiddleware?: any; | ||
| poweredByHeader?: boolean; | ||
| distDir?: string; | ||
| assetPrefix?: string; | ||
| configOrigin?: string; | ||
| useFileSystemPublicRoutes?: boolean; | ||
| // and since this is a config, it can take anything else, too. | ||
| [key: string]: any; | ||
| } | ||
| // and since this is a config, it can take anything else, too. | ||
| [key: string]: any; | ||
| } | ||
| interface ServerOptions { | ||
| dir?: string; | ||
| dev?: boolean; | ||
| staticMarkup?: boolean; | ||
| quiet?: boolean; | ||
| conf?: ServerConfig; | ||
| } | ||
| interface ServerOptions { | ||
| dir?: string; | ||
| dev?: boolean; | ||
| staticMarkup?: boolean; | ||
| quiet?: boolean; | ||
| conf?: ServerConfig; | ||
| } | ||
| interface Server { | ||
| handleRequest(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike): Promise<void>; | ||
| getRequestHandler(): (req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike) => Promise<void>; | ||
| prepare(): Promise<void>; | ||
| close(): Promise<void>; | ||
| defineRoutes(): Promise<void>; | ||
| start(): Promise<void>; | ||
| run(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; | ||
| interface Server { | ||
| handleRequest(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike): Promise<void>; | ||
| getRequestHandler(): (req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike) => Promise<void>; | ||
| prepare(): Promise<void>; | ||
| close(): Promise<void>; | ||
| defineRoutes(): Promise<void>; | ||
| start(): Promise<void>; | ||
| run(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; | ||
| render(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}, parsedUrl?: UrlLike): Promise<void>; | ||
| renderError(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<void>; | ||
| render404(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; | ||
| renderToHTML(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; | ||
| renderErrorToHTML(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; | ||
| render(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}, parsedUrl?: UrlLike): Promise<void>; | ||
| renderError(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<void>; | ||
| render404(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; | ||
| renderToHTML(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; | ||
| renderErrorToHTML(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; | ||
| serveStatic(req: http.IncomingMessage, res: http.ServerResponse, path: string): Promise<void>; | ||
| isServeableUrl(path: string): boolean; | ||
| isInternalUrl(req: http.IncomingMessage): boolean; | ||
| readBuildId(): string; | ||
| handleBuildId(buildId: string, res: http.ServerResponse): boolean; | ||
| getCompilationError(page: string, req: http.IncomingMessage, res: http.ServerResponse): Promise<any>; | ||
| handleBuildHash(filename: string, hash: string, res: http.ServerResponse): void; | ||
| send404(res: http.ServerResponse): void; | ||
| serveStatic(req: http.IncomingMessage, res: http.ServerResponse, path: string): Promise<void>; | ||
| isServeableUrl(path: string): boolean; | ||
| isInternalUrl(req: http.IncomingMessage): boolean; | ||
| readBuildId(): string; | ||
| handleBuildId(buildId: string, res: http.ServerResponse): boolean; | ||
| getCompilationError(page: string, req: http.IncomingMessage, res: http.ServerResponse): Promise<any>; | ||
| handleBuildHash(filename: string, hash: string, res: http.ServerResponse): void; | ||
| send404(res: http.ServerResponse): void; | ||
| } | ||
| } | ||
| function next(options?: ServerOptions): Server; | ||
| function next(options?: next.ServerOptions): next.Server; | ||
| export = next; | ||
@@ -65,0 +67,0 @@ } |
| { | ||
| "name": "@types/next", | ||
| "version": "2.4.1", | ||
| "version": "2.4.2", | ||
| "description": "TypeScript definitions for next", | ||
@@ -23,4 +23,4 @@ "license": "MIT", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "0bf31e21cd443fed4e68134bc3779214290216acd1bd2b0126c25d3b6643ef36", | ||
| "typesPublisherContentHash": "012331319b64acb1334319956595c855595fca8a699c3d74857533b6d79e9c7c", | ||
| "typeScriptVersion": "2.3" | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # Installation | ||
| Additional Details | ||
| * Last updated: Mon, 24 Jul 2017 18:01:45 GMT | ||
| * Last updated: Fri, 28 Jul 2017 19:49:07 GMT | ||
| * Dependencies: http, url, react, node | ||
@@ -14,0 +14,0 @@ * Global values: none |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
8457
1.4%148
1.37%