Skip to content

MemberExpressionPartProps

Members

argsoptionalChildren[] | boolean

Arguments to construct a call expression.

childrenoptionalChildren

The contents of this part. When passed, overrides the other props except nullish.

idoptionalstring | number

The identifier for this part of the member expression.

indexoptionalnumber

The index for this part of the member expression. This is used when the part is an array access (i.e. foo[0]).

nullishoptionalboolean

This part is nullish. Subsequent parts use conditional access operators.

quoteIdoptionalboolean

Whether the identifier should be quoted or not. Only needed when providing the children prop, otherwise it is determined automatically.

refkeyoptionalRefkey

A refkey for a symbol whose name becomes the identifier.

symboloptionalMemberDeclaration context interface

A symbol whose name becomes the identifier.