mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 01:40:13 -04:00
426fda2ebc
* Address circular dependencies across multiple files * Fix TS
16 lines
579 B
TypeScript
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,
|
|
}
|