@tabula/ui-json-view
Version:
Allows to view JSON in interactive way
10 lines (9 loc) • 335 B
TypeScript
import { FC, PropsWithChildren } from 'react';
import { JsonViewOptions, OnActionFn, OnToggleFn } from './types';
type Value = JsonViewOptions & {
onAction: OnActionFn;
onToggle: OnToggleFn;
};
export declare const OptionsProvider: FC<PropsWithChildren<Partial<Value>>>;
export declare function useOptions(): Value;
export {};