@recursive-robot/react-jsx-parser 1.41.4 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,4 +4,4 @@ export declare function getClosureBindings(fullExpression: AcornJSX.Expression):
4
4
  export declare function getRenderFunction(jsx: string, bindings: Record<string, any>, parseExpression: (body: string, exp: AcornJSX.Expression, scope?: Record<string, any>) => any): (args: Record<string, any>) => any;
5
5
  export declare function getAllJsxElements(code: string): (AcornJSX.JSXElement | AcornJSX.JSXFragment)[];
6
6
  export declare function transpileFunctionBody(body: string, bindings: Record<string, any>, parseExpression: (jsx: string, exp: AcornJSX.Expression, scope?: Record<string, any>) => any): [string, Record<string, any>];
7
- export declare function constructFunction(paramNames: string[], body: string, name?: string): (...args: any[]) => any;
7
+ export declare function constructFunction(paramNames: string[], body: string, name?: string, onError?: (error: any) => void): (...args: any[]) => any;