Fix SDK license types (#10273)

This commit is contained in:
LitoMore 2024-01-12 22:59:15 +08:00 committed by GitHub
parent e4d8c56204
commit 0902d6907c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

4
sdk.d.ts vendored
View file

@ -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
View file

@ -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;
};