ts-morph-structures

Home > ts-morph-structures > ClassMembersMap > keyFromName

ClassMembersMap.keyFromName() method

Signature:

static keyFromName(kind: ClassMemberImpl["kind"], isStatic: boolean, name: string): string;

Parameters

Parameter Type Description
kind ClassMemberImpl[“kind”] the structure kind.
isStatic boolean true if the class member should be static.
name string the name of the class member.

Returns:

string

the map key to use.