MF1Functions: { "mf1:currency": ( ctx: MessageFunctionContext, options: Record<string, unknown>, operand?: unknown, ) => MessageNumber; "mf1:datetime": ( ctx: MessageFunctionContext, options: Record<string, unknown>, operand?: unknown, ) => MessageDateTime; "mf1:duration": ( ctx: MessageFunctionContext, _options: unknown, operand?: unknown, ) => { source: string; toParts: () => [{ source: string; type: "mf1:duration"; value: string }]; toString: () => string; type: "mf1:duration"; valueOf: () => number; }; "mf1:number": ( ctx: MessageFunctionContext, options: Record<string, unknown>, operand?: unknown, ) => MessageNumber; "mf1:plural": ( ctx: MessageFunctionContext, options: Record<string, unknown>, operand?: unknown, ) => MessageNumber; "mf1:unit": ( ctx: MessageFunctionContext, options: Record<string, unknown>, operand?: unknown, ) => MessageNumber;} = ... Type declaration
mf1:currency: (
ctx: MessageFunctionContext,
options: Record<string, unknown>,
operand?: unknown,
) => MessageNumber
mf1:datetime: (
ctx: MessageFunctionContext,
options: Record<string, unknown>,
operand?: unknown,
) => MessageDateTime
mf1:duration: (
ctx: MessageFunctionContext,
_options: unknown,
operand?: unknown,
) => {
source: string;
toParts: () => [{ source: string; type: "mf1:duration"; value: string }];
toString: () => string;
type: "mf1:duration";
valueOf: () => number;
}
mf1:number: (
ctx: MessageFunctionContext,
options: Record<string, unknown>,
operand?: unknown,
) => MessageNumber
mf1:plural: (
ctx: MessageFunctionContext,
options: Record<string, unknown>,
operand?: unknown,
) => MessageNumber
mf1:unit: (
ctx: MessageFunctionContext,
options: Record<string, unknown>,
operand?: unknown,
) => MessageNumber
Function handlers for ICU MessageFormat 1.
Used by mf1ToMessage.