@ministryofjustice/hmpps-prison-permissions-lib
Version:
A library to centralise the process of determining whether a user should have access to create/read/update/delete a prison resource, for example, accessing a prisoner's Prisoner Profile.
4 lines (3 loc) • 314 B
TypeScript
export declare function getCurrentDateMinusDaysAsString(currentDateInMs: number, daysToSubtract: number): string;
export declare function daysToMilliseconds(days: number): number;
export declare function isDateWithinBounds(dateToCheckInMs: number, upperDateBoundInMs: number, lowerDateBoundInMs: number): boolean;