Files
supabase/studio/data/__templates/keys.ts
T

6 lines
252 B
TypeScript

export const resourceKeys = {
list: (projectRef: string | undefined) => ['projects', projectRef, 'resources'] as const,
resource: (projectRef: string | undefined, id: string | undefined) =>
['projects', projectRef, 'resources', id] as const,
}