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.

9 lines (8 loc) 388 B
import { RequestHandler, Request, Response } from 'express'; import { Services } from 'src/dpr/types/Services'; type RenderFn<T, R> = (updated: T, resolution: R, req: Request, res: Response) => { template: string; data: Record<string, unknown>; }; export declare const createReportPollingHandler: <T, R>(services: Services, renderFn: RenderFn<T, R>) => RequestHandler; export {};