ts-morph-structures

Home > ts-morph-structures > ClassMembersMap > arrayOfKind

ClassMembersMap.arrayOfKind() method

Get class members of a particular kind.

Signature:

arrayOfKind<Kind extends ClassMemberImpl["kind"]>(kind: Kind): Extract<ClassMemberImpl, KindedStructure<Kind>>[];

Parameters

Parameter Type Description
kind Kind the structure kind to get.

Returns:

Extract<ClassMemberImpl, KindedStructure<Kind>>[]

all current members of that kind.