Skip to content

AccessExpressionPartProps

argsoptionalboolean | Children[]

Emit a function call.

childrenoptionalChildren
conditionaloptionalboolean

Whether this part should use conditional access.

idoptionalstring

The identifier to use for this part.

indexoptionalChildren

Create an element access part with a single indexer argument. Mutually exclusive with the indexerArgs prop.

indexerArgsoptionalChildren[]

Create an element access part with multiple indexer arguments. Mutually exclusive with the index prop.

nullableoptionalboolean

Whether this part could possibly be null. Will guard member and element access with a conditional access operator. Passing this is not necessary if you provide a symbol or refkey and the symbol’s nullable flag is set.

refkeyoptionalRefkeyable

A refkey for the symbol whose name becomes this part’s identifier. When a refkey is provided for the first part, it will be fully resolved. Otherwise, just the symbol’s name is used.

symboloptional[unresolved link]

The symbol whose name becomes this part’s identifier.

typeArgsoptionalChildren[]

Type arguments to pass to a member access.