@iconify/utils
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -8,3 +8,4 @@ import { ExtendedIconifyIcon, IconifyJSON } from '@iconify/types'; | ||
*/ | ||
type SplitIconSetCallback = (name: string, data: ExtendedIconifyIcon | null) => void; | ||
type SplitIconSetCallback = (name: string, data: ExtendedIconifyIcon | null) => unknown; | ||
type SplitIconSetAsyncCallback = (name: string, data: ExtendedIconifyIcon | null) => Promise<unknown>; | ||
/** | ||
@@ -16,3 +17,7 @@ * Extract icons from an icon set | ||
declare function parseIconSet(data: IconifyJSON, callback: SplitIconSetCallback): string[]; | ||
/** | ||
* Async version of parseIconSet() | ||
*/ | ||
declare function parseIconSetAsync(data: IconifyJSON, callback: SplitIconSetAsyncCallback): Promise<string[]>; | ||
export { SplitIconSetCallback, parseIconSet }; | ||
export { SplitIconSetAsyncCallback, SplitIconSetCallback, parseIconSet, parseIconSetAsync }; |
@@ -11,3 +11,3 @@ export { FullIconCustomisations, IconifyIconCustomisations, IconifyIconSize, IconifyIconSizeCustomisations, defaultIconCustomisations, defaultIconSizeCustomisations } from './customisations/defaults.js'; | ||
export { ParentIconsList, ParentIconsTree, getIconsTree } from './icon-set/tree.js'; | ||
export { parseIconSet } from './icon-set/parse.js'; | ||
export { parseIconSet, parseIconSetAsync } from './icon-set/parse.js'; | ||
export { validateIconSet } from './icon-set/validate.js'; | ||
@@ -14,0 +14,0 @@ export { quicklyValidateIconSet } from './icon-set/validate-basic.js'; |
@@ -6,3 +6,3 @@ { | ||
"author": "Vjacheslav Trushkin", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"license": "MIT", | ||
@@ -9,0 +9,0 @@ "bugs": "https://github.com/iconify/iconify/issues", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304761
9461