mirror of
https://github.com/iconify/iconify.git
synced 2025-01-06 07:20:40 +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) {
|
||||
if (typeof provider !== 'string') {
|
||||
provider = typeof data['provider'] === 'string' ? data['provider'] : '';
|
||||
provider = typeof data.provider === 'string' ? data.provider : '';
|
||||
}
|
||||
|
||||
if (
|
||||
|
@ -205,6 +205,9 @@ export interface IconifyJSON extends IconifyOptional, IconifyMetaData {
|
||||
// Prefix for icons in JSON file, required.
|
||||
prefix: string;
|
||||
|
||||
// API provider, optional.
|
||||
provider?: string;
|
||||
|
||||
// List of icons, required.
|
||||
icons: IconifyIcons;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user