diff --git a/packages/iconify/src/scanner/config.ts b/packages/iconify/src/scanner/config.ts index 74ee07a..7c71ebf 100644 --- a/packages/iconify/src/scanner/config.ts +++ b/packages/iconify/src/scanner/config.ts @@ -15,7 +15,7 @@ export const inlineClass = 'iconify-inline'; * 'mask' = inline style using `mask` * 'inline' = inline SVG. */ -export type IconRenderMode = 'style' | 'bg' | 'mask' | 'inline'; +export type IconifyRenderMode = 'style' | 'bg' | 'mask' | 'inline'; /** * Data used to verify if icon is the same @@ -31,7 +31,7 @@ export interface IconifyElementProps { customisations: Required; // Render mode - mode?: IconRenderMode; + mode?: IconifyRenderMode; } /** diff --git a/packages/iconify/src/scanner/get-props.ts b/packages/iconify/src/scanner/get-props.ts index 62ed482..5b09b9e 100644 --- a/packages/iconify/src/scanner/get-props.ts +++ b/packages/iconify/src/scanner/get-props.ts @@ -6,7 +6,7 @@ import { alignmentFromString, flipFromString, } from '@iconify/utils/lib/customisations/shorthand'; -import { IconRenderMode, inlineClass } from './config'; +import { IconifyRenderMode, inlineClass } from './config'; import type { IconifyElementProps } from './config'; /** @@ -101,7 +101,7 @@ export function getElementProps(element: Element): IconifyElementProps | null { // Get render mode. Not checking actual value because incorrect values are treated as inline const mode = element.getAttribute('data-mode') as - | IconRenderMode + | IconifyRenderMode | undefined; return {