SyncUnitsProvider Interface @beta

Optional capability for providers that can resolve units and conversions from local data without awaiting.

@note Implementations should use already-loaded local data and avoid schema loading or asynchronous I/O from these methods.

Implemented by

Methods

Name Description
findUnitByNameSync(unitName: string): UnitProps Find a unit by fully qualified name using local data.  
getConversionSync(fromUnit: UnitProps, toUnit: UnitProps): UnitConversionProps Compute conversion factors using local data.  

Defined in

Last Updated: 30 September, 2026