//#region src/function/bind.d.ts /** * Creates a function that invokes func with the this binding of thisArg and * partialArgs prepended to the arguments it receives. * * @template T - The type of the function * @param func - The function to bind * @param thisArg - The this binding of func * @param partialArgs - The arguments to be partially applied * @returns Returns the new bound function * * @example * const obj = { * name: 'Alice', * greet(greeting: string) { * return `${greeting}, ${this.name}!`; * } * }; * const boundGreet = bind(obj.greet, obj, 'Hello'); * boundGreet(); // => 'Hello, Alice!' * * @example * function add(this: { base: number }, a: number, b: number) { * return this.base + a + b; * } * const obj = { base: 10 }; * const boundAdd = bind(add, obj, 5); * boundAdd(3); // => 18 */ declare function bind unknown>(func: T, thisArg: unknown, ...partialArgs: unknown[]): (...args: unknown[]) => ReturnType; //#endregion export { bind }; //# sourceMappingURL=bind.d.cts.map