@zodash/onion
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -6,2 +6,18 @@ # Change Log | ||
## [0.0.13](https://github.com/zcorky/zodash/compare/@zodash/onion@0.0.12...@zodash/onion@0.0.13) (2019-12-01) | ||
**Note:** Version bump only for package @zodash/onion | ||
## [0.0.12](https://github.com/zcorky/zodash/compare/@zodash/onion@0.0.11...@zodash/onion@0.0.12) (2019-11-25) | ||
**Note:** Version bump only for package @zodash/onion | ||
## [0.0.11](https://github.com/zcorky/zodash/compare/@zodash/onion@0.0.10...@zodash/onion@0.0.11) (2019-11-25) | ||
@@ -8,0 +24,0 @@ |
@@ -16,11 +16,11 @@ import { Middleware } from '@zodash/compose'; | ||
} | ||
export declare abstract class Onion implements IOnion { | ||
export declare abstract class Onion<T extends Context = Context> implements IOnion { | ||
private middlewares; | ||
private handler; | ||
private _callback; | ||
use(middleware: Middleware<Context>): this; | ||
abstract handle(): Middleware<Context>; | ||
callback(): (input: Input, output: Output) => Promise<Context>; | ||
use(middleware: Middleware<T>): this; | ||
abstract handle(): Middleware<T>; | ||
callback(): (input: Input, output: Output) => Promise<T>; | ||
execute(input: Input): Promise<Output>; | ||
private createContext; | ||
} |
{ | ||
"name": "@zodash/onion", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "simple onion model", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
7669