@types/koa
Advanced tools
Comparing version 2.13.8 to 2.13.9
@@ -24,15 +24,15 @@ // Type definitions for Koa 2.13.1 | ||
/// <reference types="node" /> | ||
import * as accepts from 'accepts'; | ||
import * as Cookies from 'cookies'; | ||
import { EventEmitter } from 'events'; | ||
import { IncomingMessage, ServerResponse, Server, IncomingHttpHeaders, OutgoingHttpHeaders } from 'http'; | ||
import { Http2ServerRequest, Http2ServerResponse } from 'http2'; | ||
import httpAssert = require('http-assert'); | ||
import * as HttpErrors from 'http-errors'; | ||
import * as Keygrip from 'keygrip'; | ||
import * as compose from 'koa-compose'; | ||
import { Socket, ListenOptions } from 'net'; | ||
import * as url from 'url'; | ||
import * as contentDisposition from 'content-disposition'; | ||
import { ParsedUrlQuery } from 'querystring'; | ||
import * as accepts from "accepts"; | ||
import * as Cookies from "cookies"; | ||
import { EventEmitter } from "events"; | ||
import { IncomingHttpHeaders, IncomingMessage, OutgoingHttpHeaders, Server, ServerResponse } from "http"; | ||
import { Http2ServerRequest, Http2ServerResponse } from "http2"; | ||
import httpAssert = require("http-assert"); | ||
import * as contentDisposition from "content-disposition"; | ||
import * as HttpErrors from "http-errors"; | ||
import * as Keygrip from "keygrip"; | ||
import * as compose from "koa-compose"; | ||
import { ListenOptions, Socket } from "net"; | ||
import { ParsedUrlQuery } from "querystring"; | ||
import * as url from "url"; | ||
@@ -446,3 +446,3 @@ declare interface ContextDelegatedRequest { | ||
StateT = Application.DefaultState, | ||
ContextT = Application.DefaultContext | ||
ContextT = Application.DefaultContext, | ||
> extends EventEmitter { | ||
@@ -462,3 +462,2 @@ proxy: boolean; | ||
/** | ||
* | ||
* @param {object} [options] Application options | ||
@@ -471,11 +470,10 @@ * @param {string} [options.env='development'] Environment | ||
* @param {number} [options.maxIpsCount] Max IPs read from proxy IP header, default to 0 (means infinity) | ||
* | ||
*/ | ||
constructor(options?: { | ||
env?: string | undefined, | ||
keys?: string[] | undefined, | ||
proxy?: boolean | undefined, | ||
subdomainOffset?: number | undefined, | ||
proxyIpHeader?: string | undefined, | ||
maxIpsCount?: number | undefined | ||
env?: string | undefined; | ||
keys?: string[] | undefined; | ||
proxy?: boolean | undefined; | ||
subdomainOffset?: number | undefined; | ||
proxyIpHeader?: string | undefined; | ||
maxIpsCount?: number | undefined; | ||
}); | ||
@@ -516,3 +514,3 @@ | ||
use<NewStateT = {}, NewContextT = {}>( | ||
middleware: Application.Middleware<StateT & NewStateT, ContextT & NewContextT> | ||
middleware: Application.Middleware<StateT & NewStateT, ContextT & NewContextT>, | ||
): Application<StateT & NewStateT, ContextT & NewContextT>; | ||
@@ -740,6 +738,7 @@ | ||
type ParameterizedContext<StateT = DefaultState, ContextT = DefaultContext, ResponseBodyT = unknown> = ExtendableContext | ||
& { state: StateT; } | ||
type ParameterizedContext<StateT = DefaultState, ContextT = DefaultContext, ResponseBodyT = unknown> = | ||
& ExtendableContext | ||
& { state: StateT } | ||
& ContextT | ||
& { body: ResponseBodyT; response: { body: ResponseBodyT }; }; | ||
& { body: ResponseBodyT; response: { body: ResponseBodyT } }; | ||
@@ -746,0 +745,0 @@ interface Context extends ParameterizedContext {} |
{ | ||
"name": "@types/koa", | ||
"version": "2.13.8", | ||
"version": "2.13.9", | ||
"description": "TypeScript definitions for Koa", | ||
@@ -62,4 +62,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa", | ||
}, | ||
"typesPublisherContentHash": "2a3d4c8bb7a15259a324e94ee4d0b09e395b21087fcb556abf3f5be85aaa8f7d", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "de2e493a1e4a779d245c6ca718a7e6c46ca20d01dcb2bfb7d509644b3ebf20c7", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 29 Jul 2023 17:02:38 GMT | ||
* Last updated: Thu, 14 Sep 2023 01:49:18 GMT | ||
* Dependencies: [@types/accepts](https://npmjs.com/package/@types/accepts), [@types/content-disposition](https://npmjs.com/package/@types/content-disposition), [@types/cookies](https://npmjs.com/package/@types/cookies), [@types/http-assert](https://npmjs.com/package/@types/http-assert), [@types/http-errors](https://npmjs.com/package/@types/http-errors), [@types/keygrip](https://npmjs.com/package/@types/keygrip), [@types/koa-compose](https://npmjs.com/package/@types/koa-compose), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25695
666