@api-ts/express-wrapper
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -18,3 +18,3 @@ import express from 'express'; | ||
export declare function routerForApiSpec<Spec extends ApiSpec>({ spec, routeHandlers, encoder, }: CreateRouterProps<Spec>): import("@api-ts/typed-express-router").WrappedRouter<Spec>; | ||
export declare const createServer: <Spec extends ApiSpec>(spec: Spec, configureExpressApplication: (app: express.Application) => { [ApiName in keyof Spec]: { [Method in keyof Spec[ApiName] & ("get" | "post" | "put" | "delete")]: RouteHandler<NonNullable<Spec[ApiName][Method]>>; }; }) => import("express-serve-static-core").Express; | ||
export declare const createServer: <Spec extends ApiSpec>(spec: Spec, configureExpressApplication: (app: express.Application) => { [ApiName in keyof Spec]: { [Method in keyof Spec[ApiName] & ("get" | "post" | "put" | "delete" | "patch")]: RouteHandler<NonNullable<Spec[ApiName][Method]>>; }; }) => import("express-serve-static-core").Express; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -21,4 +21,4 @@ import { ApiSpec, HttpRoute, RequestType, ResponseType } from '@api-ts/io-ts-http'; | ||
}): RouteHandler<R>; | ||
export declare const getServiceFunction: <R extends HttpRoute<"get" | "post" | "put" | "delete">>(routeHandler: RouteHandler<R>) => ServiceFunction<R, RequestType<R>>; | ||
export declare const getMiddleware: <R extends HttpRoute<"get" | "post" | "put" | "delete">>(routeHandler: RouteHandler<R>) => MiddlewareChain; | ||
export declare const getServiceFunction: <R extends HttpRoute<"get" | "post" | "put" | "delete" | "patch">>(routeHandler: RouteHandler<R>) => ServiceFunction<R, RequestType<R>>; | ||
export declare const getMiddleware: <R extends HttpRoute<"get" | "post" | "put" | "delete" | "patch">>(routeHandler: RouteHandler<R>) => MiddlewareChain; | ||
export declare const onDecodeError: OnDecodeErrorFn; | ||
@@ -25,0 +25,0 @@ export declare const onEncodeError: OnEncodeErrorFn; |
{ | ||
"name": "@api-ts/express-wrapper", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Implement an HTTP specification with Express", | ||
@@ -17,6 +17,6 @@ "author": "Eric Crosson <ericcrosson@bitgo.com>", | ||
"format:fix": "prettier --write .", | ||
"test": "c8 --all ava" | ||
"test": "c8 --all node --loader tsx --test test/*.ts" | ||
}, | ||
"dependencies": { | ||
"@api-ts/io-ts-http": "2.3.0", | ||
"@api-ts/io-ts-http": "2.4.0", | ||
"express": "4.18.2", | ||
@@ -27,22 +27,9 @@ "fp-ts": "^2.0.0", | ||
"devDependencies": { | ||
"@api-ts/superagent-wrapper": "1.1.10", | ||
"@api-ts/typed-express-router": "1.0.13", | ||
"@ava/typescript": "3.0.1", | ||
"@api-ts/superagent-wrapper": "1.1.11", | ||
"@api-ts/typed-express-router": "1.1.0", | ||
"@types/express": "4.17.17", | ||
"ava": "5.2.0", | ||
"c8": "7.13.0", | ||
"ts-node": "10.9.1", | ||
"typescript": "4.7.4" | ||
"typescript": "4.7.4", | ||
"tsx": "3.12.7" | ||
}, | ||
"ava": { | ||
"typescript": { | ||
"compile": false, | ||
"extensions": [ | ||
"ts" | ||
], | ||
"rewritePaths": { | ||
"test/": "dist/test/" | ||
} | ||
} | ||
}, | ||
"publishConfig": { | ||
@@ -49,0 +36,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6
29480
+ Added@api-ts/io-ts-http@2.4.0(transitive)
+ Addedget-intrinsic@1.3.0(transitive)
- Removed@api-ts/io-ts-http@2.3.0(transitive)
- Removedget-intrinsic@1.2.7(transitive)
Updated@api-ts/io-ts-http@2.4.0