2024-06-06 14:40:35 +02:00
|
|
|
/**
|
|
|
|
* @file Types for Simple Icons package.
|
|
|
|
*/
|
|
|
|
|
2023-04-28 17:22:57 +02:00
|
|
|
/**
|
|
|
|
* 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-03-24 19:38:18 +02:00
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
2024-01-12 16:59:15 +02:00
|
|
|
export type SPDXLicense = {
|
2023-04-28 17:22:57 +02:00
|
|
|
type: string;
|
2024-01-12 16:59:15 +02:00
|
|
|
url: string;
|
2023-04-28 17:22:57 +02:00
|
|
|
};
|
|
|
|
|
2024-01-12 16:59:15 +02:00
|
|
|
export type CustomLicense = {
|
2023-04-28 17:22:57 +02:00
|
|
|
type: 'custom';
|
|
|
|
url: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The data for a Simple Icon as is exported by the npm package.
|
|
|
|
*/
|
2024-03-24 19:38:18 +02:00
|
|
|
export type SimpleIcon = {
|
2022-11-28 13:32:57 +02:00
|
|
|
title: string;
|
|
|
|
slug: string;
|
|
|
|
svg: string;
|
|
|
|
path: string;
|
|
|
|
source: string;
|
|
|
|
hex: string;
|
2023-05-25 14:45:12 +02:00
|
|
|
guidelines?: string;
|
|
|
|
license?: License;
|
2024-03-24 19:38:18 +02:00
|
|
|
};
|