Link Search Menu Expand Document

VariableRef 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.

The value of a VariableRef is defined by the current Scope.


export interface VariableRef 


To refer to an inner property of an object value, use . as a separator; in case of conflict, the longest starting substring wins. For example, '' would be first matched by an exactly matching top-level key, and in case that fails, with the 'name' property of the 'user' object: The runtime scopes { '': 'Kat' } and { user: { name: 'Kat' } } would both resolve a '' VariableRef as the string 'Kat'.


Property Modifiers Type Description
name   string (BETA)
type   ‘variable’ (BETA)