MessageFunction type

A compiled message function, which may accept an object parameter

Signature:

export type MessageFunction<ReturnType extends 'string' | 'values'> = (param?: Record<string, unknown> | unknown[]) => ReturnType extends 'string' ? string : unknown[];