feat: multiple category feature

This commit is contained in:
ridemountainpig
2024-01-16 11:27:57 +08:00
parent 0fc7ab88c4
commit 6d5e54b602
5 changed files with 46 additions and 13 deletions
+4 -1
View File
@@ -1,9 +1,12 @@
import type { tCategory } from './categories';
type tCategoryPair = [tCategory, tCategory];
type CategoryTriple = [tCategory, tCategory, tCategory];
export interface iSVG {
id?: number;
title: string;
category: tCategory;
category: tCategory | tCategoryPair | CategoryTriple;
route:
| string // for backwards compat of when theme support was not added
| {