@recursive-robot/react-jsx-parser 1.36.0 → 1.36.2

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.
@@ -0,0 +1,5 @@
1
+ export declare type ScopedFunction = Function & {
2
+ scope?: Record<string, any>;
3
+ };
4
+ export declare type FunctionProxy = ProxyHandler<ScopedFunction>;
5
+ export declare function createFunctionProxy(fn: ScopedFunction, scope: Record<string, any>): FunctionProxy;
@@ -0,0 +1,5 @@
1
+ export declare type ScopedFunction = Function & {
2
+ scope?: Record<string, any>;
3
+ };
4
+ export declare type FunctionProxy = ProxyHandler<ScopedFunction>;
5
+ export declare function createFunctionProxy(fn: ScopedFunction, scope: Record<string, any>): FunctionProxy;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /** This file exists solely to build the index.d.ts file */
2
2
  import JsxParser from './components/JsxParser';
3
3
  export type { TProps } from './components/JsxParser';
4
+ export type { ScopedFunction, FunctionProxy } from './helpers/functionProxy';
4
5
  export default JsxParser;