This commit is contained in:
2025-06-17 02:30:26 +09:00
parent 729bb5e4ca
commit ceeefa9b7c
10 changed files with 180 additions and 22 deletions
+8 -2
View File
@@ -1,3 +1,7 @@
import { CATEGORIES, USER_ROLES } from '@/consts'
export type Category = typeof CATEGORIES[number]
export type Post = {
id: number
url: string
@@ -9,11 +13,13 @@ export type Post = {
export type Tag = {
id: number
name: string
category: string
category: Category
count?: number}
export type User = {
id: number
name: string | null
inheritanceCode: string
role: string }
role: UserRole }
export type UserRole = typeof USER_ROLES[number]