UNPKG

messageformat

Version:

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

14 lines (13 loc) 515 B
import type { Context } from '../format-context.ts'; import { Options } from '../data-model/types.ts'; export declare class MessageFunctionContext { #private; readonly dir: 'ltr' | 'rtl' | 'auto' | undefined; readonly id: string | undefined; readonly source: string; constructor(ctx: Context, source: string, options?: Options); get literalOptionKeys(): Set<string>; get localeMatcher(): "best fit" | "lookup"; get locales(): string[]; get onError(): (error: unknown) => void; }