ts-morph-structures

Home > ts-morph-structures > TypeMembersMap > arrayOfKind

TypeMembersMap.arrayOfKind() method

Get type members of a particular kind.

Signature:

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

Parameters

Parameter Type Description
kind Kind the structure kind to get.

Returns:

readonly Extract<TypeMemberImpl, KindedStructure<Kind>>[]

all current members of that kind.