@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
10 lines (9 loc) • 412 B
TypeScript
import { UnitType } from '../../components/_dashboards/dashboard-visualisation/Validate';
/**
* Maps the measure Unit type to the correct char
*
* @param {string} unit
* @return {*} {string}
*/
export declare const mapUnitToSymbol: (unit?: UnitType) => string;
export declare const setUnitOnValue: (value: string | number | null | undefined, unit?: string, brackets?: boolean, prefix?: boolean) => string;