Files
supabase/apps/studio/data/branches/keys.ts
2025-07-01 18:12:46 +08:00

8 lines
387 B
TypeScript

export const branchKeys = {
list: (projectRef: string | undefined) => ['projects', projectRef, 'branches'] as const,
detail: (projectRef: string | undefined, id: string | undefined) =>
['projects', projectRef, 'branches', id] as const,
diff: (projectRef: string | undefined, branchId: string | undefined) =>
['projects', projectRef, 'branch', branchId, 'diff'] as const,
}