13 lines
556 B
TypeScript
Executable File
13 lines
556 B
TypeScript
Executable File
import * as React from 'react';
|
|
import { StyleProps } from './DataRenderer';
|
|
export interface Props {
|
|
data: Object | Array<any>;
|
|
style?: StyleProps;
|
|
shouldExpandNode?: (level: number, value: any, field?: string) => boolean;
|
|
}
|
|
export declare const defaultStyles: StyleProps;
|
|
export declare const darkStyles: StyleProps;
|
|
export declare const allExpanded: () => boolean;
|
|
export declare const collapseAllNested: (level: number) => boolean;
|
|
export declare const JsonView: ({ data, style, shouldExpandNode }: Props) => React.JSX.Element;
|