@messageformat/icu-messageformat-1
Version:
Compile ICU MessageFormat 1 sources into MessageFormat 2 formatters
8 lines (7 loc) • 428 B
TypeScript
import { type Model as MF } from 'messageformat';
/**
* Ensure that the `msg` data model does not contain any unsupported MF1 argType or argStyle references,
* calling `onError` on errors.
* If `onError` is not defined, a {@link MessageError} will be thrown on error.
*/
export declare function mf1Validate(msg: MF.Message, onError?: (type: 'unknown-function' | 'unsupported-operation', expr: MF.Expression) => void): void;