Skip to content

MemberExpressionPartProps

argsoptional Children[] | booleanArguments to construct a call expression.
awaitoptional booleanWhether to await the value that results from this part of the member expression.
childrenoptional ChildrenThe 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.
refkeyoptional RefkeyA refkey for a symbol whose name becomes the identifier.
symboloptional OutputSymbolA symbol whose name becomes the identifier.