koa-fp-ts-router
Advanced tools
Comparing version 0.2.1 to 0.2.2
import Koa from 'koa'; | ||
import { Middleware, Context } from 'koa'; | ||
import { Middleware } from 'koa'; | ||
import { Match } from 'fp-ts-routing'; | ||
@@ -17,4 +17,4 @@ export interface Options { | ||
*/ | ||
allowedMethods(): Middleware<StateT, Context & CustomT>; | ||
routes(): Middleware<StateT, Context & CustomT & { | ||
allowedMethods(): Middleware<StateT, CustomT>; | ||
routes(): Middleware<StateT, CustomT & { | ||
params: unknown; | ||
@@ -25,3 +25,3 @@ }>; | ||
*/ | ||
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -32,3 +32,3 @@ }>): void; | ||
*/ | ||
get<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
get<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -39,3 +39,3 @@ }>): void; | ||
*/ | ||
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -46,3 +46,3 @@ }>): void; | ||
*/ | ||
post<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
post<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -53,3 +53,3 @@ }>): void; | ||
*/ | ||
put<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
put<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -56,0 +56,0 @@ }>): void; |
import Koa from 'koa'; | ||
import { Middleware, Context } from 'koa'; | ||
import { Middleware } from 'koa'; | ||
import { Match } from 'fp-ts-routing'; | ||
@@ -17,4 +17,4 @@ export interface Options { | ||
*/ | ||
allowedMethods(): Middleware<StateT, Context & CustomT>; | ||
routes(): Middleware<StateT, Context & CustomT & { | ||
allowedMethods(): Middleware<StateT, CustomT>; | ||
routes(): Middleware<StateT, CustomT & { | ||
params: unknown; | ||
@@ -25,3 +25,3 @@ }>; | ||
*/ | ||
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
delete<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -32,3 +32,3 @@ }>): void; | ||
*/ | ||
get<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
get<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -39,3 +39,3 @@ }>): void; | ||
*/ | ||
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
patch<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -46,3 +46,3 @@ }>): void; | ||
*/ | ||
post<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
post<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -53,3 +53,3 @@ }>): void; | ||
*/ | ||
put<Params>(match: Match<Params>, middleware: Middleware<StateT, Context & CustomT & { | ||
put<Params>(match: Match<Params>, middleware: Middleware<StateT, CustomT & { | ||
params: Params; | ||
@@ -56,0 +56,0 @@ }>): void; |
{ | ||
"name": "koa-fp-ts-router", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A Koa router middleware built on the top of fp-ts-routing", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
16589