ts-morph-structures

Home > ts-morph-structures > ClassMembersMap > convertAccessorsToProperty

ClassMembersMap.convertAccessorsToProperty() method

Convert get and/or set accessors to a property. This may be lossy, but we try to be faithful.

Signature:

convertAccessorsToProperty(isStatic: boolean, name: string): void;

Parameters

Parameter Type Description
isStatic boolean true if the property is static (and the accessors should be)
name string the property name

Returns:

void