ts-morph-structures

Home > ts-morph-structures > MemberedTypeToClass > addTypeMember

MemberedTypeToClass.addTypeMember() method

Define a class member for a given type member (constructor, property, method, getter, setter).

Signature:

addTypeMember(isStatic: boolean, member: TypeMemberImpl): void;

Parameters

Parameter Type Description
isStatic boolean true if the class member is static.
member TypeMemberImpl the type member to convert to a class member.

Returns:

void