UNPKG

@iconify/utils

Version:

Common functions for working with Iconify icon sets used by various packages.

15 lines (12 loc) 588 B
import { ExternalPkgName, AutoInstall, CustomIconLoader } from './types.cjs'; import '@antfu/utils'; import '../customisations/defaults.cjs'; import '@iconify/types'; /** * Creates a CustomIconLoader collection from an external package collection. * * @param packageName The package name. * @param autoInstall {AutoInstall} [autoInstall=false] - whether to automatically install */ declare function createExternalPackageIconLoader(packageName: ExternalPkgName, autoInstall?: AutoInstall, cwd?: string): Record<string, CustomIconLoader>; export { createExternalPackageIconLoader };