UNPKG

drizzle-cube

Version:

Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.

17 lines (16 loc) 493 B
/** * Hook for fetching distinct field values for filter dropdowns * Uses the /load API to get actual data values */ interface UseFilterValuesResult { values: any[]; loading: boolean; error: string | null; refetch: () => void; searchValues: (searchTerm: string, force?: boolean) => void; } /** * Custom hook to fetch distinct values for a field */ export declare function useFilterValues(fieldName: string | null, enabled?: boolean): UseFilterValuesResult; export {};