@reactive-js/pipe
Advanced tools
Comparing version 0.0.31 to 0.0.32
@@ -13,1 +13,15 @@ export interface OperatorLike<A, B> { | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>): I; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>): J; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J, K>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>): K; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J, K, L>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>, op12: OperatorLike<K, L>): L; | ||
export declare function compose<T, A, B>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>): OperatorLike<T, B>; | ||
export declare function compose<T, A, B, C>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>): OperatorLike<T, C>; | ||
export declare function compose<T, A, B, C, D>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>): OperatorLike<T, D>; | ||
export declare function compose<T, A, B, C, D, E>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>): OperatorLike<T, E>; | ||
export declare function compose<T, A, B, C, D, E, F>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>): OperatorLike<T, F>; | ||
export declare function compose<T, A, B, C, D, E, F, G>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>): OperatorLike<T, G>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>): OperatorLike<T, H>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>): OperatorLike<T, I>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>): OperatorLike<T, J>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J, K>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>): OperatorLike<T, K>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J, K, L>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>, op12: OperatorLike<K, L>): OperatorLike<T, L>; |
@@ -7,2 +7,6 @@ "use strict"; | ||
exports.pipe = pipe; | ||
function compose(...operators) { | ||
return source => operators.reduce((acc, next) => next(acc), source); | ||
} | ||
exports.compose = compose; | ||
//# sourceMappingURL=index.js.map |
@@ -13,1 +13,15 @@ export interface OperatorLike<A, B> { | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>): I; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>): J; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J, K>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>): K; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J, K, L>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>, op12: OperatorLike<K, L>): L; | ||
export declare function compose<T, A, B>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>): OperatorLike<T, B>; | ||
export declare function compose<T, A, B, C>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>): OperatorLike<T, C>; | ||
export declare function compose<T, A, B, C, D>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>): OperatorLike<T, D>; | ||
export declare function compose<T, A, B, C, D, E>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>): OperatorLike<T, E>; | ||
export declare function compose<T, A, B, C, D, E, F>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>): OperatorLike<T, F>; | ||
export declare function compose<T, A, B, C, D, E, F, G>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>): OperatorLike<T, G>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>): OperatorLike<T, H>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>): OperatorLike<T, I>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>): OperatorLike<T, J>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J, K>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>): OperatorLike<T, K>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J, K, L>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>, op12: OperatorLike<K, L>): OperatorLike<T, L>; |
export function pipe(source, ...operators) { | ||
return operators.reduce((acc, next) => next(acc), source); | ||
} | ||
export function compose(...operators) { | ||
return source => operators.reduce((acc, next) => next(acc), source); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -13,2 +13,16 @@ export interface OperatorLike<A, B> { | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>): I; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>): J; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J, K>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>): K; | ||
export declare function pipe<T, A, B, C, D, E, F, G, H, I, J, K, L>(src: T, op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>, op12: OperatorLike<K, L>): L; | ||
export declare function compose<T, A, B>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>): OperatorLike<T, B>; | ||
export declare function compose<T, A, B, C>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>): OperatorLike<T, C>; | ||
export declare function compose<T, A, B, C, D>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>): OperatorLike<T, D>; | ||
export declare function compose<T, A, B, C, D, E>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>): OperatorLike<T, E>; | ||
export declare function compose<T, A, B, C, D, E, F>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>): OperatorLike<T, F>; | ||
export declare function compose<T, A, B, C, D, E, F, G>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>): OperatorLike<T, G>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>): OperatorLike<T, H>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>): OperatorLike<T, I>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>): OperatorLike<T, J>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J, K>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>): OperatorLike<T, K>; | ||
export declare function compose<T, A, B, C, D, E, F, G, H, I, J, K, L>(op1: OperatorLike<T, A>, op2: OperatorLike<A, B>, op3: OperatorLike<B, C>, op4: OperatorLike<C, D>, op5: OperatorLike<D, E>, op6: OperatorLike<E, F>, op7: OperatorLike<F, G>, op8: OperatorLike<G, H>, op9: OperatorLike<H, I>, op10: OperatorLike<I, J>, op11: OperatorLike<J, K>, op12: OperatorLike<K, L>): OperatorLike<T, L>; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@reactive-js/pipe", | ||
"version": "0.0.31", | ||
"version": "0.0.32", | ||
"main": "dist/cjs/index.js", | ||
@@ -50,3 +50,3 @@ "module": "dist/esm5/index.js", | ||
}, | ||
"gitHead": "c950e60d18f5bb13f5890123c05728b4edf9c3c0" | ||
"gitHead": "352c7637c9ea06b52a8407b8d167e57fde1fa239" | ||
} |
Sorry, the diff of this file is not supported yet
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
31342
115