simple-icons/types.d.ts

35 lines
701 B
TypeScript
Raw Normal View History

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