You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
273 B
7 lines
273 B
/**
|
|
* 将多个单个参数的函数合成为一个函数,执行顺序为从右到左
|
|
* @param fn 第一个函数
|
|
* @param rest 剩余函数
|
|
* @returns 复合后的函数
|
|
*/
|
|
export declare function compose<T>(fn: (x: T) => T, ...rest: ((x: T) => T)[]): (x: T) => T;
|
|
|