mirror of
https://github.com/portainer/portainer.git
synced 2025-11-26 14:06:05 +08:00
9 lines
289 B
TypeScript
9 lines
289 B
TypeScript
import { StackId } from '../types';
|
|
|
|
export const queryKeys = {
|
|
base: () => ['stacks'] as const,
|
|
stack: (stackId?: StackId) => [...queryKeys.base(), stackId] as const,
|
|
stackFile: (stackId?: StackId, params?: unknown) =>
|
|
[...queryKeys.stack(stackId), 'file', params] as const,
|
|
};
|