UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

14 lines (13 loc) 449 B
/** * Singleton empty objects to avoid repeated object creation in hot paths */ export declare const EMPTY_OBJECT: any; export declare const EMPTY_ARRAY: readonly any[]; /** * Create a new empty object only when needed for mutation */ export declare function createEmptyObject(): any; /** * Returns either the singleton EMPTY_OBJECT or creates a new one if mutation is needed */ export declare function getEmptyObject(mutable?: boolean): any;