ts-morph-structures

Home > ts-morph-structures > TypeMembersMap > keyFromName

TypeMembersMap.keyFromName() method

Signature:

static keyFromName(kind: NamedTypeMemberImpl["kind"], name: string): string;

Parameters

Parameter Type Description
kind NamedTypeMemberImpl[“kind”] the structure kind.
name string the name of the type member.

Returns:

string

the map key to use.