UNPKG

@ivandt/json-rules

Version:

Rule parsing engine for JSON rules

14 lines (13 loc) 431 B
import { UnitType } from "../../types/rule"; /** * Validates if a value contains a valid unit of the specified type */ export declare function validateUnit(value: any, unitType: UnitType): boolean; /** * Get all supported units for a given unit type */ export declare function getSupportedUnits(unitType: UnitType): string[]; /** * Get all supported unit types */ export declare function getSupportedUnitTypes(): UnitType[];