forked from algolia/react-element-to-jsx-string
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
24 lines (19 loc) · 780 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
declare module 'react-element-to-jsx-string' {
import { ReactNode } from 'react';
type FilterPropsFunction = (value: any, key: string) => boolean
interface ReactElementToJSXStringOptions {
displayName?: (element: ReactNode) => string;
filterProps?: string[] | FilterPropsFunction;
showDefaultProps?: boolean;
showFunctions?: boolean;
functionValue?: (fn: any) => any;
tabStop?: number;
useBooleanShorthandSyntax?: boolean;
maxInlineAttributesLineLength?: number;
sortProps?: boolean;
useFragmentShortSyntax?: boolean;
}
const reactElementToJSXString: (element: ReactNode, options?: ReactElementToJSXStringOptions) => string;
export { ReactElementToJSXStringOptions as Options };
export default reactElementToJSXString;
}