1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00
simple-icons/types.d.ts

31 lines
591 B
TypeScript
Raw Normal View History

/**
* The license for a Simple Icon.
*
* @see {@link https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md#optional-data Optional Data}
*/
export type License = SPDXLicense | CustomLicense;
2024-01-12 16:59:15 +02:00
export type SPDXLicense = {
type: string;
2024-01-12 16:59:15 +02:00
url: string;
};
2024-01-12 16:59:15 +02:00
export type CustomLicense = {
type: 'custom';
url: string;
};
/**
* The data for a Simple Icon as is exported by the npm package.
*/
export interface SimpleIcon {
title: string;
slug: string;
svg: string;
path: string;
source: string;
hex: string;
2023-05-25 14:45:12 +02:00
guidelines?: string;
license?: License;
}