ぼざクリタグ広場 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.
 
 
 
 
 
 

19 lines
721 B

  1. import type { FetchPostsParams } from '@/types'
  2. export const postsKeys = {
  3. root: ['posts'] as const,
  4. index: (p: FetchPostsParams) => ['posts', 'index', p] as const,
  5. show: (id: string) => ['posts', id] as const,
  6. related: (id: string) => ['related', id] as const,
  7. changes: (p: { id?: string; page: number; limit: number }) =>
  8. ['posts', 'changes', p] as const }
  9. export const tagsKeys = {
  10. root: ['tags'] as const,
  11. show: (name: string) => ['tags', name] as const }
  12. export const wikiKeys = {
  13. root: ['wiki'] as const,
  14. index: (p: { title?: string }) => ['wiki', 'index', p] as const,
  15. show: (title: string, p: { version?: string }) => ['wiki', title, p] as const }