ts-morph-structures

Home > ts-morph-structures > MemberedObjectTypeStructureImpl

MemberedObjectTypeStructureImpl class

Properties, methods, getters, setters, and index signatures. Very much like interfaces. Usually in type aliases.

Signature:

export default class MemberedObjectTypeStructureImpl extends TypeStructuresBase<TypeStructureKind.MemberedObject> 

Extends: TypeStructuresBase<TypeStructureKind.MemberedObject>

Example

{
   (callSignatureArgument) => string;
   new (constructSignatureArgument) => ClassName;
   get getterName(): symbol;
   [indexSignatureKey: string]: boolean;
   property: number;
   method(): void;
   set setterName(value: symbol);
}

Constructors

Constructor Modifiers Description
(constructor)()   Constructs a new instance of the MemberedObjectTypeStructureImpl class

Properties

Property Modifiers Type Description
callSignatures readonly CallSignatureDeclarationImpl[]  
constructSignatures readonly ConstructSignatureDeclarationImpl[]  
getAccessors readonly GetAccessorDeclarationImpl[]  
indexSignatures readonly IndexSignatureDeclarationImpl[]  
kind readonly (not declared)  
methods readonly MethodSignatureImpl[]  
properties readonly PropertySignatureImpl[]  
setAccessors readonly SetAccessorDeclarationImpl[]  
writerFunction   (writer: CodeBlockWriter) => void  

Methods

Method Modifiers Description
clone(other) static