ぼざクリ タグ広場 https://hub.nizika.monster
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.
 
 
 
 
 
 

38 lines
831 B

  1. import { CATEGORIES, USER_ROLES } from '@/consts'
  2. export type Category = typeof CATEGORIES[number]
  3. export type Post = {
  4. id: number
  5. url: string
  6. title: string
  7. thumbnail: string
  8. tags: Tag[]
  9. viewed: boolean }
  10. export type Tag = {
  11. id: number
  12. name: string
  13. category: Category
  14. count?: number}
  15. export type User = {
  16. id: number
  17. name: string | null
  18. inheritanceCode: string
  19. role: UserRole }
  20. export type WikiPage = {
  21. id: number
  22. title: string
  23. updated_at?: string }
  24. export type WikiPageChange = {
  25. sha: string
  26. wiki_page: WikiPage
  27. user: User
  28. change_type: string
  29. timestamp: string }
  30. export type UserRole = typeof USER_ROLES[number]