Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/koa

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/koa - npm Package Compare versions

Comparing version 2.11.8 to 2.13.0

32

koa/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for Koa 2.11.0
// Type definitions for Koa 2.13.0
// Project: http://koajs.com

@@ -9,4 +9,5 @@ // Definitions by: DavidCai1993 <https://github.com/DavidCai1993>

// Christian Vaagland Tellnes <https://github.com/tellnes>
// Piotr Kuczynski <https://github.com/pkuczynski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// TypeScript Version: 3.0

@@ -29,3 +30,3 @@ /* =================== USAGE ===================

import { Http2ServerRequest, Http2ServerResponse } from 'http2';
import httpAssert = require('http-assert');
import * as httpAssert from 'http-assert';
import * as HttpErrors from 'http-errors';

@@ -321,3 +322,3 @@ import * as Keygrip from 'keygrip';

*/
body: any;
body: unknown;

@@ -447,3 +448,3 @@ /**

StateT = Application.DefaultState,
CustomT = Application.DefaultContext
ContextT = Application.DefaultContext
> extends EventEmitter {

@@ -453,6 +454,6 @@ proxy: boolean;

maxIpsCount: number;
middleware: Application.Middleware<StateT, CustomT>[];
middleware: Application.Middleware<StateT, ContextT>[];
subdomainOffset: number;
env: string;
context: Application.BaseContext & CustomT;
context: Application.BaseContext & ContextT;
request: Application.BaseRequest;

@@ -497,5 +498,5 @@ response: Application.BaseResponse;

*/
use<NewStateT = {}, NewCustomT = {}>(
middleware: Application.Middleware<StateT & NewStateT, CustomT & NewCustomT>,
): Application<StateT & NewStateT, CustomT & NewCustomT>;
use<NewStateT = {}, NewContextT = {}>(
middleware: Application.Middleware<StateT & NewStateT, ContextT & NewContextT>
): Application<StateT & NewStateT, ContextT & NewContextT>;

@@ -544,4 +545,4 @@ /**

type Middleware<StateT = DefaultState, CustomT = DefaultContext> = compose.Middleware<
ParameterizedContext<StateT, CustomT>
type Middleware<StateT = DefaultState, ContextT = DefaultContext, ResponseBodyT = any> = compose.Middleware<
ParameterizedContext<StateT, ContextT, ResponseBodyT>
>;

@@ -723,5 +724,6 @@

type ParameterizedContext<StateT = DefaultState, CustomT = DefaultContext> = ExtendableContext & {
state: StateT;
} & CustomT;
type ParameterizedContext<StateT = DefaultState, ContextT = DefaultContext, ResponseBodyT = unknown> = ExtendableContext
& { state: StateT; }
& ContextT
& { body: ResponseBodyT; response: { body: ResponseBodyT }; };

@@ -728,0 +730,0 @@ interface Context extends ParameterizedContext {}

{
"name": "@types/koa",
"version": "2.11.8",
"version": "2.13.0",
"description": "TypeScript definitions for Koa",

@@ -36,2 +36,7 @@ "license": "MIT",

"githubUsername": "tellnes"
},
{
"name": "Piotr Kuczynski",
"url": "https://github.com/pkuczynski",
"githubUsername": "pkuczynski"
}

@@ -57,4 +62,4 @@ ],

},
"typesPublisherContentHash": "f1c77c2be940d315632715a4ba1520d23fc209f561fffbe6eb5d7fd1068fe9d7",
"typesPublisherContentHash": "62f75c49a38964ad22aa30eed8f0a67fb4faf9a82de53d180c1fe8b082b06e22",
"typeScriptVersion": "3.4"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 12 Feb 2021 14:42:44 GMT
* Last updated: Thu, 18 Feb 2021 22:58:48 GMT
* Dependencies: [@types/accepts](https://npmjs.com/package/@types/accepts), [@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/content-disposition](https://npmjs.com/package/@types/content-disposition), [@types/node](https://npmjs.com/package/@types/node)

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [DavidCai1993](https://github.com/DavidCai1993), [jKey Lu](https://github.com/jkeylu), [Brice Bernard](https://github.com/brikou), [harryparkdotio](https://github.com/harryparkdotio), [Wooram Jun](https://github.com/chatoo2412), and [Christian Vaagland Tellnes](https://github.com/tellnes).
These definitions were written by [DavidCai1993](https://github.com/DavidCai1993), [jKey Lu](https://github.com/jkeylu), [Brice Bernard](https://github.com/brikou), [harryparkdotio](https://github.com/harryparkdotio), [Wooram Jun](https://github.com/chatoo2412), [Christian Vaagland Tellnes](https://github.com/tellnes), and [Piotr Kuczynski](https://github.com/pkuczynski).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc