UNPKG

@ministryofjustice/hmpps-digital-prison-reporting-frontend

Version:

The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.

17 lines (14 loc) 581 B
import { createClient } from 'redis'; import { ReportStoreConfig } from '../types/ReportStore.js'; type RedisClient = ReturnType<typeof createClient>; declare class ReportDataStore { private readonly redisClient; prefix: string; constructor(redisClient: RedisClient, prefix?: string); private ensureConnected; setUserConfig(userId: string, config: ReportStoreConfig): Promise<void>; getUserConfig(userId: string): Promise<ReportStoreConfig>; private setBaseplate; } export { ReportDataStore, ReportDataStore as default }; export type { RedisClient };