mic-inspector
Version:
A react inspector which a most similar of Chorme DevTools inspector
36 lines (35 loc) • 847 B
TypeScript
import { PropertyValueProps } from '../property-value/types';
import { UnknownObject } from 'mic-global';
/**
* Object value separator
*/
export declare enum ObjectValueSeparator {
Comma = 0,
Spread = 1
}
/**
* Object value type
*/
export declare type ObjectValueType = UnknownObject | unknown[];
/**
* Object value props interface
*/
export interface ObjectValueProps extends PropertyValueProps {
/**
* No any children
*/
children?: never[];
/**
* A number represents the length of object properties to preview
*/
maxPropertyLength?: number;
/**
* A boolean represents whether enable the preview mode
* In preview mode, the property will not show sub properties
*/
preview?: boolean;
/**
* Any object that you want to inspect
*/
value: ObjectValueType;
}