We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e583fa6 commit c4fe54aCopy full SHA for c4fe54a
index.d.ts
@@ -1,9 +1,11 @@
1
declare module 'react-element-to-jsx-string' {
2
import { ReactNode } from 'react';
3
4
+ type FilterPropsFunction = (value: any, key: string) => boolean
5
+
6
interface ReactElementToJSXStringOptions {
7
displayName?: (element: ReactNode) => string;
- filterProps?: string[];
8
+ filterProps?: string[] | FilterPropsFunction;
9
showDefaultProps?: boolean;
10
showFunctions?: boolean;
11
functionValue?: (fn: any) => any;
@@ -15,5 +17,8 @@ declare module 'react-element-to-jsx-string' {
15
17
}
16
18
19
const reactElementToJSXString: (element: ReactNode, options?: ReactElementToJSXStringOptions) => string;
- export = reactElementToJSXString;
20
21
+ export { ReactElementToJSXStringOptions as Options };
22
23
+ export default reactElementToJSXString;
24
0 commit comments