mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-05 22:48:17 +08:00
⚙️ Upgrade API types
This commit is contained in:
parent
b29dfd8332
commit
a03589d795
@ -39,17 +39,18 @@ export interface Category {
|
|||||||
- For SVGs:
|
- For SVGs:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
type ThemeOptions = {
|
export type ThemeOptions = {
|
||||||
light: string;
|
|
||||||
dark: string;
|
dark: string;
|
||||||
|
light: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface iSVG {
|
export interface iSVG {
|
||||||
id: number;
|
id?: number;
|
||||||
title: string;
|
title: string;
|
||||||
category: string | string[];
|
category: tCategory | tCategory[];
|
||||||
route: string | ThemeOptions;
|
route: string | ThemeOptions;
|
||||||
wordmark?: string | ThemeOptions;
|
wordmark?: string | ThemeOptions;
|
||||||
|
brandUrl?: string;
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user