mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-11 09:40:31 +08:00
⚙️ Fix category types
This commit is contained in:
parent
4df56fa956
commit
c477b6c83b
@ -1,8 +1,5 @@
|
|||||||
import type { tCategory } from './categories';
|
import type { tCategory } from './categories';
|
||||||
|
|
||||||
type CategoryPair = [tCategory, tCategory];
|
|
||||||
type CategoryTriple = [tCategory, tCategory, tCategory];
|
|
||||||
|
|
||||||
export type ThemeOptions = {
|
export type ThemeOptions = {
|
||||||
dark: string;
|
dark: string;
|
||||||
light: string;
|
light: string;
|
||||||
@ -11,7 +8,7 @@ export type ThemeOptions = {
|
|||||||
export interface iSVG {
|
export interface iSVG {
|
||||||
id?: number;
|
id?: number;
|
||||||
title: string;
|
title: string;
|
||||||
category: tCategory | CategoryPair | CategoryTriple;
|
category: tCategory | tCategory[];
|
||||||
route: string | ThemeOptions;
|
route: string | ThemeOptions;
|
||||||
wordmark?: string | ThemeOptions;
|
wordmark?: string | ThemeOptions;
|
||||||
url: string;
|
url: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user