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

Last Updated: 30 September, 2026