ts-morph-structures

Home > ts-morph-structures > ClassFieldStatementsMap > set

ClassFieldStatementsMap.set() method

Set a statements for a key set.

Signature:

set(fieldName: string, statementGroup: string, statements: ClassFieldStatement[]): this;

Parameters

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

Returns:

this

This collection.