action-chain
Advanced tools
Comparing version 1.0.0-1532013016694 to 1.0.0-1532015160372
import { ActionBase, NoValueActionBase } from './'; | ||
interface Operators<Context, InitialValue, Value> { | ||
test(cb: (value: Value, context: Context) => void): InitialValue extends undefined ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
testFork(action: Action<Context, Value>): InitialValue extends undefined ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
test(cb: (value: Value, context: Context) => void): [InitialValue] extends [void] ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
testFork(action: Action<Context, Value>): [InitialValue] extends [void] ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
} | ||
@@ -6,0 +6,0 @@ export interface Action<Context, InitialValue, Value = InitialValue> extends Operators<Context, InitialValue, Value>, ActionBase<Context, InitialValue, Value> { |
import { ActionBase, NoValueActionBase } from './'; | ||
interface Operators<Context, InitialValue, Value> { | ||
test(cb: (value: Value, context: Context) => void): InitialValue extends undefined ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
testFork(action: Action<Context, Value>): InitialValue extends undefined ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
test(cb: (value: Value, context: Context) => void): [InitialValue] extends [void] ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
testFork(action: Action<Context, Value>): [InitialValue] extends [void] ? NoValueAction<Context, InitialValue, Value> : Action<Context, InitialValue, Value>; | ||
} | ||
@@ -6,0 +6,0 @@ export interface Action<Context, InitialValue, Value = InitialValue> extends Operators<Context, InitialValue, Value>, ActionBase<Context, InitialValue, Value> { |
{ | ||
"name": "action-chain", | ||
"version": "1.0.0-1532013016694", | ||
"version": "1.0.0-1532015160372", | ||
"description": "Functional actions", | ||
@@ -5,0 +5,0 @@ "author": "Christian Alfoni <christianalfoni@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94464