@bigtest/effection-express
Advanced tools
Comparing version 0.1.1-24f4cab to 0.1.1-2a8c361
/// <reference types="node" /> | ||
import { Operation } from 'effection'; | ||
import { Express as ActualExpress, RequestHandler } from 'express'; | ||
import { Server } from 'http'; | ||
export declare class Express { | ||
private inner; | ||
private server; | ||
constructor(inner: any); | ||
use(middleware: any): void; | ||
private server?; | ||
constructor(inner: ActualExpress); | ||
use(...handlers: RequestHandler[]): void; | ||
listen(port: number): Operation<Server>; | ||
@@ -10,0 +11,0 @@ join(): Operation<void>; |
@@ -11,4 +11,4 @@ "use strict"; | ||
} | ||
use(middleware) { | ||
this.inner.use(middleware); | ||
use(...handlers) { | ||
this.inner.use(...handlers); | ||
} | ||
@@ -15,0 +15,0 @@ *listen(port) { |
{ | ||
"name": "@bigtest/effection-express", | ||
"version": "0.1.1-24f4cab", | ||
"version": "0.1.1-2a8c361", | ||
"description": "Makes it easy to use Express from Effection", | ||
@@ -21,4 +21,5 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@frontside/tsconfig": "*", | ||
"@types/mocha": "^7.0.1", | ||
"@types/node": "^12.7.11", | ||
"@types/node": "^13.13.4", | ||
"effection": "^0.6.2", | ||
@@ -33,4 +34,4 @@ "expect": "^24.9.0", | ||
"dependencies": { | ||
"@effection/events": "^0.6.0", | ||
"@types/node": "^12.7.11", | ||
"@effection/events": "^0.6.1", | ||
"@types/node": "^13.13.4", | ||
"express": "^4.17.1" | ||
@@ -37,0 +38,0 @@ }, |
Sorry, the diff of this file is not supported yet
3609
47
7
+ Added@types/node@13.13.52(transitive)
- Removed@types/node@12.20.55(transitive)
Updated@effection/events@^0.6.1
Updated@types/node@^13.13.4