You've already forked simple-icons
mirror of
https://github.com/simple-icons/simple-icons.git
synced 2025-10-30 23:07:47 +02:00
Fix SDK license types (#10273)
This commit is contained in:
4
sdk.d.ts
vendored
4
sdk.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
* Types for Simple Icons SDK.
|
||||
*/
|
||||
|
||||
import type { License } from './types';
|
||||
import type { CustomLicense, SPDXLicense } from './types';
|
||||
|
||||
/**
|
||||
* The data for a third-party extension.
|
||||
@@ -55,7 +55,7 @@ export type IconData = {
|
||||
source: string;
|
||||
slug?: string;
|
||||
guidelines?: string;
|
||||
license?: License;
|
||||
license?: Omit<SPDXLicense, 'url'> | CustomLicense;
|
||||
aliases?: Aliases;
|
||||
};
|
||||
|
||||
|
||||
6
types.d.ts
vendored
6
types.d.ts
vendored
@@ -5,12 +5,12 @@
|
||||
*/
|
||||
export type License = SPDXLicense | CustomLicense;
|
||||
|
||||
type SPDXLicense = {
|
||||
export type SPDXLicense = {
|
||||
type: string;
|
||||
url?: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
type CustomLicense = {
|
||||
export type CustomLicense = {
|
||||
type: 'custom';
|
||||
url: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user