UNPKG
tsoid
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.21
1.0.20
1.0.10
1.0.9
1.0.6
1.0.4
1.0.3
1.0.1
1.0.0
0.0.1
Typed functional library to deal with async operations.
tsoid
/
dist
/
src
/
utils
/
pipe.d.ts
9 lines
(8 loc)
•
276 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{
FunctionA1
}
from
'../types'
;
/** * Create a new function that represents all the functions piped * *
@param
{
function
}
fn1
*
@param
{
function[]
}
fns
*/
export
default
function
pipe<A>(
fn1
:
FunctionA1
<A,
any
>, ...
fns
:
FunctionA1
<
any
,
any
>[]):
(
input
: A
) =>
any
;