portainer/app/react/common/stacks/queries/query-keys.ts

9 lines
280 B
TypeScript

import { StackId } from '../types';
export const queryKeys = {
base: () => ['stacks'],
stack: (stackId?: StackId) => [...queryKeys.base(), stackId] as const,
stackFile: (stackId?: StackId, params?: unknown) =>
[...queryKeys.stack(stackId), 'file', params] as const,
};