Skip to main content Link Search Menu Expand Document (external link)

MessageFunction type

A message function, as generated by MessageFormat.compile()

Signature:

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