simple-icons/types.d.ts

32 lines
654 B
TypeScript
Raw Permalink 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-03-24 17:38:18 +00:00
// eslint-disable-next-line @typescript-eslint/naming-convention
2024-01-12 14:59:15 +00:00
export type SPDXLicense = {
type: string;
2024-01-12 14:59:15 +00:00
url: string;
};
2024-01-12 14:59:15 +00:00
export type CustomLicense = {
type: 'custom';
url: string;
};
/**
* The data for a Simple Icon as is exported by the npm package.
*/
2024-03-24 17:38:18 +00:00
export type SimpleIcon = {
title: string;
slug: string;
svg: string;
path: string;
source: string;
hex: string;
2023-05-25 12:45:12 +00:00
guidelines?: string;
license?: License;
2024-03-24 17:38:18 +00:00
};