mirror of
https://github.com/iconify/iconify.git
synced 2025-02-14 17:36:29 +00:00
Update types package: add IconifyOptional to IconifyJSONIconsData
This commit is contained in:
parent
9216c1b576
commit
55c24a473e
4
packages/types/package-lock.json
generated
4
packages/types/package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@iconify/types",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@iconify/types",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"license": "(Apache-2.0 OR GPL-2.0)",
|
||||
"devDependencies": {
|
||||
"typescript": "^4.1.2"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@iconify/types",
|
||||
"description": "Types for Iconify data",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"author": "Vjacheslav Trushkin",
|
||||
"license": "(Apache-2.0 OR GPL-2.0)",
|
||||
"main": "./index.js",
|
||||
|
@ -220,7 +220,7 @@ export interface IconifyMetaData {
|
||||
/**
|
||||
* JSON structure, contains only icon data
|
||||
*/
|
||||
export interface IconifyJSONIconsData {
|
||||
export interface IconifyJSONIconsData extends IconifyOptional {
|
||||
// Prefix for icons in JSON file, required.
|
||||
prefix: string;
|
||||
|
||||
@ -232,6 +232,10 @@ export interface IconifyJSONIconsData {
|
||||
|
||||
// Optional aliases.
|
||||
aliases?: IconifyAliases;
|
||||
|
||||
// IconifyOptional properties that are used as default values for icons when icon is missing value.
|
||||
// If property exists in both icon and root, use value from icon.
|
||||
// This is used to reduce duplication.
|
||||
}
|
||||
|
||||
/**
|
||||
@ -239,16 +243,9 @@ export interface IconifyJSONIconsData {
|
||||
*
|
||||
* All optional values can exist in root of JSON file, used as defaults.
|
||||
*/
|
||||
export interface IconifyJSON
|
||||
extends IconifyJSONIconsData,
|
||||
IconifyOptional,
|
||||
IconifyMetaData {
|
||||
export interface IconifyJSON extends IconifyJSONIconsData, IconifyMetaData {
|
||||
// Optional list of missing icons. Returned by Iconify API when querying for icons that do not exist.
|
||||
not_found?: string[];
|
||||
|
||||
// IconifyOptional properties that are used as default values for icons when icon is missing value.
|
||||
// If property exists in both icon and root, use value from icon.
|
||||
// This is used to reduce duplication.
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user