UNPKG
@morjs/runtime-base
Version:
latest (1.0.111-alpha.0)
1.0.111-alpha.0
1.0.102-alpha.0
1.0.90-alpha.1
1.0.69
1.0.68
1.0.53
1.0.46
1.0.34
1.0.26
1.0.6
mor runtime base
github.com/eleme/morjs
eleme/morjs
@morjs/runtime-base
/
esm
/
utils
/
compose.d.ts
13 lines
(12 loc)
•
282 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * 函数类型 */
export
interface
IAnyFunc
{ (...
args
:
any
[]):
any
; }
/** * 将多个函数合并为一个函数 *
@param
stack
- 函数堆栈 *
@returns
合并后的函数 */
export
declare
function
compose<T
extends
IAnyFunc
>(
stack
: T[]):
(
...
args
:
any
[]
) =>
void
;