ts-morph-structures

Home > ts-morph-structures > ClassMembersMap > convertTypeMembers

ClassMembersMap.convertTypeMembers() method

Creata an array of class members from an array of type members,

Signature:

static convertTypeMembers(isStatic: boolean, typeMembers: NamedTypeMemberImpl[], map?: WeakMap<ClassMemberImpl, TypeMemberImpl>): NamedClassMemberImpl[];

Parameters

Parameter Type Description
isStatic boolean true if the class members should be static, false if they should not be.
typeMembers NamedTypeMemberImpl[] the type members to convert.
map WeakMap<ClassMemberImpl, TypeMemberImpl> (Optional) for defining which type member a class member comes from.

Returns:

NamedClassMemberImpl[]