You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- import { CATEGORIES, USER_ROLES } from '@/consts'
-
- export type Category = typeof CATEGORIES[number]
-
- export type Post = {
- id: number
- url: string
- title: string
- thumbnail: string
- tags: Tag[]
- viewed: boolean }
-
- export type Tag = {
- id: number
- name: string
- category: Category
- count?: number}
-
- export type User = {
- id: number
- name: string | null
- inheritanceCode: string
- role: UserRole }
-
- export type WikiPage = {
- id: number
- title: string
- updated_at?: string }
-
- export type WikiPageChange = {
- sha: string
- wiki_page: WikiPage
- user: User
- change_type: string
- timestamp: string }
-
- export type UserRole = typeof USER_ROLES[number]
|