ts-morph-structures

Home > ts-morph-structures > ClassMembersMap > moveMembersToClass

ClassMembersMap.moveMembersToClass() method

Move class members from this map to a class declaration, and clear this map.

Signature:

moveMembersToClass(classDecl: ClassDeclarationImpl): ClassDeclarationImpl;

Parameters

Parameter Type Description
classDecl ClassDeclarationImpl  

Returns:

ClassDeclarationImpl

the new class declaration.