UNPKG

messageformat

Version:

Intl.MessageFormat / Unicode MessageFormat 2 parser, runtime and polyfill

6 lines (5 loc) 467 B
import type { FunctionRef, Literal, VariableRef } from '../data-model/types.ts'; import type { Context } from '../format-context.ts'; import type { MessageFallback } from '../functions/index.ts'; import { type MessageValue } from '../message-value.ts'; export declare function resolveFunctionRef<T extends string, P extends string>(ctx: Context<T, P>, operand: Literal | VariableRef | undefined, { name, options }: FunctionRef): MessageValue<T, P> | MessageFallback;