js.foresight-devtools
Version:
Visual debugging tools for ForesightJS - mouse trajectory prediction and element interaction visualization
14 lines • 766 B
TypeScript
/**
* Converts a JavaScript object into a readable method call string format.
*
* This utility is designed for copying object configurations and transforming them
* into method call syntax for easy copy-pasting of global settings or configurations.
*
* @template T - The type of the input object, constrained to Record<string, any>
* @param obj - The object to convert to method call format
* @param methodName - The name of the method to wrap the object in (e.g., 'ForesightManager.initialize')
* @returns A formatted string representing the object as a method call with proper indentation
*
*/
export declare function objectToMethodCall<T extends Record<string, any>>(obj: T, methodName: string): string;
//# sourceMappingURL=objectToMethodCall.d.ts.map