mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-07 19:25:13 +02:00
13 lines
556 B
TypeScript
13 lines
556 B
TypeScript
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;
|