ts-morph-structures

Home > ts-morph-structures > AccessorMirrorGetter > getAccessorMirror

AccessorMirrorGetter.getAccessorMirror() method

Signature:

getAccessorMirror(
    key: MemberedStatementsKey,
  ): stringWriterOrStatementImpl | undefined;

Parameters

Parameter Type Description
key MemberedStatementsKey Describing the getter or setter to implement. statementGroupKey will be ClassFieldStatementsMap.GROUP_INITIALIZER_OR_PROPERTY.

Returns:

stringWriterOrStatementImpl | undefined

the value to write for the getter and/or setter to mirror.