Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

ralph(M28-002): Give use-property-values.ts a real type - the last place caller/server drift can hide

ralpha0f6c82b2eec
diff --git a/apps/start/src/hooks/use-property-values.ts b/apps/start/src/hooks/use-property-values.ts
index 4b9b3589f..8cbf8a16c 100644
--- a/apps/start/src/hooks/use-property-values.ts
+++ b/apps/start/src/hooks/use-property-values.ts
@@ -1,7 +1,10 @@
import { useTRPC } from '@/integrations/trpc/react';
+import type { RouterInputs } from '@/trpc/client';
import { useQuery } from '@tanstack/react-query';
-export function usePropertyValues(params: any) {
+export function usePropertyValues(
+ params: RouterInputs['chart']['values'] & { enabled?: boolean },
+) {
const trpc = useTRPC();
const { enabled = true, ...input } = params;
const query = useQuery(