Literal value of Options["kind"].
Value accepted by formatting operations.
Specification accepted by the codec.
Value reported as rounded metadata by formatDetailed.
Formats a value into semantic tokens; this is the required rendering operation.
OptionalformatOptional detailed renderer; computes metadata while rendering, without localized parsing.
Semantic fragments used to derive the final formatted text.
OptionalformatOptional range renderer producing source-labelled tokens.
OptionalformatOptional series renderer for domain-specific shared-scale selection.
OptionalformatOptional direct string fast path used by format and compiled format.
Its output should equal renderTokens(codec.format(...)).
OptionalresolveOptional resolver for specification-dependent support and implementation metadata.
OptionalselectSelects reusable series options for Formatter.compileSeries without rendering.
The returned specification must retain the same kind and encode the selected
scale for scalar, collection, and parsing operations. Input options are frozen;
return a new record when changing them. Without this hook, options are unchanged.
Codec for one discriminated value domain.
formatis the only required operation. Range formatting, series-specific scaling, runtime resolution, and a direct string fast path are opt-in capabilities. Define codec objects withsatisfies FormatCodec<...>so TypeScript checks the implementation without erasing which optional methods are actually present.Example: A point formatting codec