getDefaultPersistenceUnit Function
Returns the package's default built-in persistence unit for a supported bundled built-in phenomenon.
This helper is intentionally limited to the built-in canonical unit set shipped with @itwin/core-quantity.
For schema-defined, custom, or iModel-specific persistence units, use a UnitsProvider-based workflow instead.
getDefaultPersistenceUnit(phenomenon: PhenomenonName): UnitName
| Parameter | Type | Description |
|---|---|---|
| phenomenon | PhenomenonName |
Returns - UnitName
Defined in
- quantity/src/UnitConversions.ts Line 133
Last Updated: 09 November, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.