@bigtest/effection-express
Advanced tools
Comparing version 0.1.1-9850ca4 to 0.1.1-b18ad89
/// <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>; |
@@ -10,4 +10,4 @@ "use strict"; | ||
} | ||
use(middleware) { | ||
this.inner.use(middleware); | ||
use(...handlers) { | ||
this.inner.use(...handlers); | ||
} | ||
@@ -14,0 +14,0 @@ *listen(port) { |
{ | ||
"name": "@bigtest/effection-express", | ||
"version": "0.1.1-9850ca4", | ||
"version": "0.1.1-b18ad89", | ||
"description": "Makes it easy to use Express from Effection", | ||
@@ -21,2 +21,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@frontside/tsconfig": "*", | ||
"@types/mocha": "^7.0.1", | ||
@@ -23,0 +24,0 @@ "@types/node": "^12.7.11", |
Sorry, the diff of this file is not supported yet
3465
46
6