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

Expression interface

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

To resolve an Expression, an externally defined function is called.


export interface Expression 


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
name   string (BETA)
operand?   Literal | VariableRef (BETA) (Optional)
options?   Option[] (BETA) (Optional)
type   ‘expression’ (BETA)