ts-morph-structures

Home > ts-morph-structures > ClassFieldStatementsMap > get

ClassFieldStatementsMap.get() method

Get a statements for a key set.

Signature:

get(fieldName: string, statementGroup: string): ClassFieldStatement[] | undefined;

Parameters

Parameter Type Description
fieldName string The class field name for the statements.
statementGroup string The statement group owning the statements.

Returns:

ClassFieldStatement[] | undefined

The statements. Undefined if it isn’t in the collection.