UNPKG

400 BTypeScriptView Raw
1/**
2 * 创建一个绑定上下文的函数
3 * @param callback 回调
4 * @param context 上下文
5 * @param params 额外的参数
6 */
7export declare function bind<C>(callback: (this: C, ...args: any[]) => any, context?: C, ...params: any[]): (this: any, ...args: any[]) => any;
8
9declare module './ctor' {
10 interface XEUtilsMethods {
11 bind: typeof bind;
12 }
13}
14
15export default bind