UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

19 lines 787 B
/** * Utility function for parsing function parameters and handling nested structures * in JavaScript/TypeScript code. */ export interface ParsedParameters { /** The raw parameter strings split by top-level commas */ parts: string[]; /** Extracted balanced brace objects from each part (null if not an object) */ objects: (string | null)[]; } /** * Parses function parameters, splitting by top-level commas and extracting object literals. * This combines comma-splitting with object extraction for common use cases. */ export declare function parseFunctionParameters(str: string): ParsedParameters; /** * Extracts a balanced brace object from a string, handling leading whitespace and comments */ export declare function extractBalancedBraces(str: string): string | null;