@akala/core
Version:
18 lines (17 loc) • 587 B
TypeScript
/**
* Extracts parameter names from a function
* @param func - The function to analyze
* @returns Array of parameter names
* @example
* function test(a, b, c) {}
* getParamNames(test); // Returns ['a', 'b', 'c']
*/
export declare function getParamNames(func: (...args: unknown[]) => unknown): string[];
/**
* Escapes special regex characters in a string
* @param str - The string to escape
* @returns Escaped string safe for regex construction
* @example
* escapeRegExp('Hello.world'); // Returns 'Hello\.world'
*/
export declare function escapeRegExp(str: string): string;