Home > ts-morph-structures > MemberedTypeToClass
Convert type members to a class members map, including statements.
Signature:
export default class MemberedTypeToClass
Property | Modifiers | Type | Description |
---|---|---|---|
constructorParameters | readonly |
ParameterDeclarationImpl[] | The class constructor’s current parameters list. |
indexSignatureResolver | IndexSignatureResolver | undefined | An interface to get names which match an index signature’s key name. | |
isAbstractCallback | ClassAbstractMemberQuestion | undefined | ||
isAsyncCallback | ClassAsyncMethodQuestion | undefined | ||
isGeneratorCallback | ClassGeneratorMethodQuestion | undefined | ||
scopeCallback | ClassScopeMemberQuestion | undefined |
Method | Modifiers | Description |
---|---|---|
addStatementGetters(priority, statementGetters) | Add statement getters to this. | |
addTypeMember(isStatic, member) | Define a class member for a given type member (constructor, property, method, getter, setter). | |
buildClassMembersMap() | Convert cached type members to a ClassMembersMap, complete with statements. | |
defineStatementsByPurpose(purposeKey, isBlockStatement, regionName) | Define a statement purpose group for the target class. | |
importFromMemberedType(isStatic, membered) | Define class members for a membered object type or interface. | |
importFromTypeMembersMap(isStatic, membersMap) | Define class members for a map of given type members (constructor, property, method, getter, setter). | |
insertMemberKey(isFieldStatic, fieldType, isGroupStatic, groupType) | Add member keys for a field and a group. |