Skip to content

MemberExpressionPartProps

argsoptionalChildren[] | booleanArguments to construct a call expression.
awaitoptional booleanWhether to await the value that results from this part of the member expression.
childrenoptionalChildrenThe contents of this part. When passed, overrides the other props except nullish.
idoptional string | numberThe identifier for this part of the member expression.
indexoptional numberThe index for this part of the member expression. This is used when the part is an array access (i.e. foo[0]).
nullishoptional booleanThis part is nullish. Subsequent parts use conditional access operators.
quoteIdoptional booleanWhether the identifier should be quoted or not. Only needed when providing the children prop, otherwise it is determined automatically.
refkeyoptionalRefkeyA refkey for a symbol whose name becomes the identifier.
symboloptionalOutputSymbolA symbol whose name becomes the identifier.