messageformat
Version:
Intl.MessageFormat / Unicode MessageFormat 2 parser, runtime and polyfill
10 lines (9 loc) • 394 B
TypeScript
import type { MessageFunctionContext } from './index.ts';
import type { MessageNumber } from './number.ts';
/**
* `unit` accepts as input numerical values as well as
* objects wrapping a numerical value that also include a `unit` property.
*
* @beta
*/
export declare function unit(ctx: MessageFunctionContext, exprOpt: Record<string | symbol, unknown>, operand?: unknown): MessageNumber;