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

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.

Signature:

export interface Expression 

Remarks

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.

Properties

Property Modifiers Type Description
name   string (BETA)
operand?   Literal | VariableRef (BETA) (Optional)
options?   Option[] (BETA) (Optional)
type   ‘expression’ (BETA)