FunctionRef interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

To resolve a FunctionRef, an externally defined function is called.


export interface FunctionRef 


The name identifies a function that takes in the arguments args, the current locale, as well as any options, and returns some corresponding output. Likely functions available by default would include 'plural' for determining the plural category of a numeric value, as well as 'number' and 'date' for formatting values.


Property Modifiers Type Description
kind   ‘open’ | ‘close’ | ‘value’ (BETA)
name   string (BETA)
operand?   Literal | VariableRef (BETA) (Optional)
options?   Option[] (BETA) (Optional)
type   ‘function’ (BETA)