getFormatSync Method
Return a locally available format definition, or undefined when unavailable.
getFormatSync(name: string, system?: UnitSystemKey, context?: FormatsProviderContext): FormatDefinition | undefined
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| system | UnitSystemKey | |
| context | FormatsProviderContext | Optional context to forward when delegating the current lookup through another provider. |
Returns - FormatDefinition | undefined
Defined in
- quantity/src/Formatter/Interfaces.ts Line 247
Last Updated: 30 September, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.