UNPKG

signalk-server

Version:

An implementation of a [Signal K](http://signalk.org) server for boats.

19 lines 1.02 kB
import { EnhancedDisplayUnits, DisplayUnitsMetadata } from './types'; /** * Given stored displayUnits metadata, resolve the full conversion info * * @param storedDisplayUnits - What's in baseDeltas.json (category, optional targetUnit) * @param pathSiUnit - The SI unit for this path (optional) * @param username - Username for per-user preset resolution (optional) * @returns Full displayUnits with formula, or null if can't resolve */ export declare function resolveDisplayUnits(storedDisplayUnits: DisplayUnitsMetadata | undefined, pathSiUnit?: string, username?: string): EnhancedDisplayUnits | null; /** * Validate that a category assignment is valid for a path * * @param pathSiUnit - The SI unit from SignalK schema for this path (may be undefined) * @param category - The category being assigned * @returns Error message if invalid, null if valid */ export declare function validateCategoryAssignment(pathSiUnit: string | undefined, category: string): string | null; //# sourceMappingURL=resolver.d.ts.map