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