react-json-tree
Version:
React JSON Viewer Component, Extracted from redux-devtools
21 lines (20 loc) • 633 B
TypeScript
import React from 'react';
import type { CircularCache, CommonInternalProps } from './types.js';
/**
* Renders nested values (eg. objects, arrays, lists, etc.)
*/
export interface RenderChildNodesProps extends CommonInternalProps {
data: unknown;
nodeType: string;
circularCache: CircularCache;
level: number;
}
interface Props extends CommonInternalProps {
data: unknown;
nodeType: string;
nodeTypeIndicator: string;
createItemString: (data: unknown, collectionLimit: number) => string;
expandable: boolean;
}
export default function JSONNestedNode(props: Props): React.JSX.Element;
export {};