ts-morph-structures

Home > ts-morph-structures > ConstructorBodyStatementsGetter > getCtorBodyStatements

ConstructorBodyStatementsGetter.getCtorBodyStatements() method

Signature:

getCtorBodyStatements(
    key: MemberedStatementsKey,
  ): readonly stringWriterOrStatementImpl[];

Parameters

Parameter Type Description
key MemberedStatementsKey The membered statement key. statementGroupKey will be “constructor”.

Returns:

readonly stringWriterOrStatementImpl[]

statements to insert for the given field key and statement group key.