@iconify/types
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@iconify/types", | ||
"description": "Types for Iconify data", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"author": "Vjacheslav Trushkin", | ||
@@ -6,0 +6,0 @@ "license": "(Apache-2.0 OR GPL-2.0)", |
14
types.ts
@@ -164,5 +164,7 @@ /** | ||
/** | ||
* Optional themes. | ||
* Optional themes, old format. | ||
* | ||
* Deprecated because format is unnecessary complicated. Key is meaningless, suffixes and prefixes are mixed together. | ||
*/ | ||
export interface IconifyThemes { | ||
export interface LegacyIconifyThemes { | ||
// Key is unique string. | ||
@@ -211,4 +213,8 @@ [index: string]: { | ||
// Optional themes. | ||
themes?: IconifyThemes; | ||
// Optional themes (old format). | ||
themes?: LegacyIconifyThemes; | ||
// Optional themes (new format). Key is prefix or suffix, value is title. | ||
prefixes?: Record<string, string>; | ||
suffixes?: Record<string, string>; | ||
} | ||
@@ -215,0 +221,0 @@ |
49045
236