2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-12 01:45:41 +00:00

Add hidden field to IconifyOptional interface

This commit is contained in:
Vjacheslav Trushkin 2020-09-14 23:08:13 +03:00
parent c6148060aa
commit 618dba0c13
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "@iconify/types",
"description": "Types for Iconify data",
"version": "1.0.3",
"version": "1.0.4",
"author": "Vjacheslav Trushkin",
"license": "(Apache-2.0 OR GPL-2.0)",
"main": "./index.js",

View File

@ -53,7 +53,12 @@ export interface IconifyTransformations {
*/
export interface IconifyOptional
extends IconifyDimenisons,
IconifyTransformations {}
IconifyTransformations {
// True if icon is hidden.
// Used in icon sets to keep icons that no longer exist, but should still be accessible
// from API, preventing websites from breaking when icon is removed by developer.
hidden?: boolean;
}
/**
* Alias.