Files
supabase/apps/studio/data/table-rows/keys.ts
Joshen Lim 426fda2ebc Address circular dependencies across multiple files (#39231)
* Address circular dependencies across multiple files

* Fix TS
2025-10-06 11:01:56 +08:00

16 lines
579 B
TypeScript

export const tableRowKeys = {
tableRows: (projectRef?: string, { table, roleImpersonationState, ...args }: any = {}) =>
[
'projects',
projectRef,
'table-rows',
table?.id,
'rows',
{ roleImpersonation: roleImpersonationState?.role, ...args },
] as const,
tableRowsCount: (projectRef?: string, { table, ...args }: any = {}) =>
['projects', projectRef, 'table-rows', table?.id, 'count', args] as const,
tableRowsAndCount: (projectRef?: string, tableId?: number) =>
['projects', projectRef, 'table-rows', tableId] as const,
}