mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-15 09:54:11 +03: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.
|
||||
*/
|
||||
|
||||
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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user