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

28 lines
1.1 KiB

  1. export const postsKeys = {
  2. root: ['posts'] as const,
  3. index: (p: { url?: string
  4. title?: string
  5. tags?: string
  6. match?: 'all' | 'any'
  7. created_from?: string
  8. created_to?: string
  9. updated_from?: string
  10. updated_to?: string
  11. original_created_from?: string
  12. original_created_to?: string
  13. page?: number
  14. limit?: number }) => ['posts', 'index', p] as const,
  15. show: (id: string) => ['posts', id] as const,
  16. related: (id: string) => ['related', id] as const,
  17. changes: (p: { id?: string; page: number; limit: number }) =>
  18. ['posts', 'changes', p] as const }
  19. export const tagsKeys = {
  20. root: ['tags'] as const,
  21. show: (name: string) => ['tags', name] as const }
  22. export const wikiKeys = {
  23. root: ['wiki'] as const,
  24. index: (p: { title?: string }) => ['wiki', 'index', p] as const,
  25. show: (title: string, p: { version?: string }) => ['wiki', title, p] as const }