mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 15:44:05 +00:00
Make replaceIDs function optional in builder interface
This commit is contained in:
parent
9077105e60
commit
6a9dc8aabc
@ -12,7 +12,7 @@ import type { IconifyIconBuildResult } from '@iconify/utils/lib/svg/build';
|
|||||||
* Interface for exported builder functions
|
* Interface for exported builder functions
|
||||||
*/
|
*/
|
||||||
export interface IconifyBuilderFunctions {
|
export interface IconifyBuilderFunctions {
|
||||||
replaceIDs: (body: string, prefix?: string | (() => string)) => string;
|
replaceIDs?: (body: string, prefix?: string | (() => string)) => string;
|
||||||
calculateSize: (
|
calculateSize: (
|
||||||
size: string | number,
|
size: string | number,
|
||||||
ratio: number,
|
ratio: number,
|
||||||
|
@ -11,7 +11,6 @@ import {
|
|||||||
import { listIcons, shareStorage } from '@iconify/core/lib/storage/storage';
|
import { listIcons, shareStorage } from '@iconify/core/lib/storage/storage';
|
||||||
import type { IconifyBuilderFunctions } from '@iconify/core/lib/builder/functions';
|
import type { IconifyBuilderFunctions } from '@iconify/core/lib/builder/functions';
|
||||||
import { buildIcon } from '@iconify/core/lib/builder/functions';
|
import { buildIcon } from '@iconify/core/lib/builder/functions';
|
||||||
import { replaceIDs } from '@iconify/utils/lib/svg/id';
|
|
||||||
import { calculateSize } from '@iconify/utils/lib/svg/size';
|
import { calculateSize } from '@iconify/utils/lib/svg/size';
|
||||||
|
|
||||||
// API
|
// API
|
||||||
@ -158,7 +157,6 @@ export function exportFunctions(): IconifyExportedFunctions {
|
|||||||
addIcon,
|
addIcon,
|
||||||
addCollection,
|
addCollection,
|
||||||
calculateSize,
|
calculateSize,
|
||||||
replaceIDs,
|
|
||||||
buildIcon,
|
buildIcon,
|
||||||
loadIcons,
|
loadIcons,
|
||||||
loadIcon,
|
loadIcon,
|
||||||
|
Loading…
Reference in New Issue
Block a user