Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 483 Bytes

File metadata and controls

19 lines (12 loc) · 483 Bytes
title MessageFunction
parent @messageformat/core
grand_parent API Reference

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[];