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
- quantity/src/Interfaces.ts Line 128
Last Updated: 30 September, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.