@quillforms/utils
Version:
Utils package for defining some helpful functions
17 lines • 671 B
TypeScript
/**
* QuillForms Dependencies
*/
import type { IconDescriptor, IconRenderer } from '@quillforms/types';
/**
* Function that receives an icon during the registration
* and returns a new icon object that is normalized so we can rely on just on possible icon structure
* in the codebase.
*
* @param {IconRenderer} icon Render behavior of icon;
* one of a Dashicon slug, an element, or a
* component.
*
* @return {IconDescriptor} Object describing the icon.
*/
export declare function normalizeIconObject(icon: IconRenderer): IconDescriptor;
//# sourceMappingURL=normalize-icon-object.d.ts.map