convert-info


目录

title: convertIconSetInfo() in Iconify Utils
types:
  IconifyInfo: '/docs/types/iconify-info.md'

convertIconSetInfo()

This function is part of Iconify Utils package.

Function [func]convertIconSetInfo() converts and validates icon set information.

Some old icon sets might have information in legacy format, which was created before Iconify projects moved to TypeScript. This function will accept both old and new formats, will convert and validate it and will return correct [type]IconifyInfo data.

Usage

Function has the following parameters:

Function returns:

Example

src: libraries/utils/convert-info.ts
title: 'usage.ts'
extra:
  - src: libraries/utils/convert-info.json
    title: 'Result:'

版本号 #2
由 壳壳虫 创建于 2026-10-31 14:27:34 UTC
由 壳壳虫 更新于 2026-10-31 14:27:35 UTC