drizzle-cube
Version:
Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.
18 lines (17 loc) • 665 B
TypeScript
import { ReactNode } from 'react';
import { CubeMeta, FieldLabelMap } from '../types';
export interface CubeMetaContextValue {
meta: CubeMeta | null;
labelMap: FieldLabelMap;
metaLoading: boolean;
metaError: string | null;
getFieldLabel: (fieldName: string) => string;
refetchMeta: () => void;
}
export declare const CubeMetaContext: import('react').Context<CubeMetaContextValue | null>;
interface CubeMetaProviderProps {
children: ReactNode;
}
export declare function CubeMetaProvider({ children }: CubeMetaProviderProps): import("react/jsx-runtime").JSX.Element;
export declare function useCubeMeta(): CubeMetaContextValue;
export {};