Home > ts-morph-structures > MemberedTypeToClass > addTypeMember
Define a class member for a given type member (constructor, property, method, getter, setter).
Signature:
addTypeMember(isStatic: boolean, member: TypeMemberImpl): void;
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