mirror of
https://github.com/iconify/iconify.git
synced 2025-01-22 22:58:27 +00:00
Add provider to IconifyJSON type
This commit is contained in:
parent
cf3d9394ee
commit
b87edf3f20
@ -277,7 +277,7 @@ function generateIcon(
|
|||||||
*/
|
*/
|
||||||
function addCollection(data: IconifyJSON, provider?: string) {
|
function addCollection(data: IconifyJSON, provider?: string) {
|
||||||
if (typeof provider !== 'string') {
|
if (typeof provider !== 'string') {
|
||||||
provider = typeof data['provider'] === 'string' ? data['provider'] : '';
|
provider = typeof data.provider === 'string' ? data.provider : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -205,6 +205,9 @@ export interface IconifyJSON extends IconifyOptional, IconifyMetaData {
|
|||||||
// Prefix for icons in JSON file, required.
|
// Prefix for icons in JSON file, required.
|
||||||
prefix: string;
|
prefix: string;
|
||||||
|
|
||||||
|
// API provider, optional.
|
||||||
|
provider?: string;
|
||||||
|
|
||||||
// List of icons, required.
|
// List of icons, required.
|
||||||
icons: IconifyIcons;
|
icons: IconifyIcons;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user