eb975e5301
Merge branch 'main' into feature/140 #140 Merge remote-tracking branch 'origin/main' into feature/140 #140 #140 #140 #140 #140 Merge remote-tracking branch 'origin/main' into feature/140 #140 #140 #140 #140 #140 #140 #140 #140 #140 #140 #140 Merge remote-tracking branch 'origin/main' into feature/140 Merge remote-tracking branch 'origin/main' into feature/140 #140 ぼちぼち Merge remote-tracking branch 'origin/main' into feature/140 #140 #140 #140 Co-authored-by: miteruzo <miteruzo@naver.com> Reviewed-on: #256
18 行
727 B
TypeScript
18 行
727 B
TypeScript
export const postsKeys = {
|
|
root: ['posts'] as const,
|
|
index: (p: { tags: string; match: 'any' | 'all'; page: number; limit: number }) =>
|
|
['posts', 'index', p] as const,
|
|
show: (id: string) => ['posts', id] as const,
|
|
related: (id: string) => ['related', id] as const,
|
|
changes: (p: { id?: string; page: number; limit: number }) =>
|
|
['posts', 'changes', p] as const }
|
|
|
|
export const tagsKeys = {
|
|
root: ['tags'] as const,
|
|
show: (name: string) => ['tags', name] as const }
|
|
|
|
export const wikiKeys = {
|
|
root: ['wiki'] as const,
|
|
index: (p: { title?: string }) => ['wiki', 'index', p] as const,
|
|
show: (title: string, p: { version?: string }) => ['wiki', title, p] as const }
|