UNPKG

mic-inspector

Version:

A react inspector which a most similar of Chorme DevTools inspector

22 lines (21 loc) 894 B
import { DescriptorNameType } from './types'; import { PropertyNameType } from '../property-name/types'; import { ReferenceTypes } from 'mic-global'; import { NamedDescriptor } from '.'; /** * Get the name type of the property * @param name Property name */ export declare const getNameType: (name: PropertyNameType) => DescriptorNameType; /** * A method to sort the descriptors * @param descriptor1 Property descriptor * @param descriptor2 Another property descriptor */ export declare const sortNamedDescriptors: (descriptor1: NamedDescriptor, descriptor2: NamedDescriptor) => 1 | -1; /** * Get the sorted named descriptors of the specific property value * @param propertyValue Property value * @param owner An object as the owner that has these descriptors */ export declare const getNamedDescriptors: (propertyValue: ReferenceTypes, owner?: ReferenceTypes) => NamedDescriptor[];