Home > ts-morph-structures > MemberedTypeToClass > insertMemberKey
Add member keys for a field and a group.
Signature:
insertMemberKey(isFieldStatic: boolean, fieldType: PropertySignatureImpl, isGroupStatic: boolean, groupType: InsertedMemberKey["groupType"]): void;
Parameter | Type | Description |
---|---|---|
isFieldStatic | boolean | true if the field is static. |
fieldType | PropertySignatureImpl | the field signature. |
isGroupStatic | boolean | true if the group is static (false for constructors) |
groupType | InsertedMemberKey[“groupType”] | the group signature, or “constructor” for the constructor I generate. |
Returns:
void