Class NamedKeys

Represents a collection of named keys. Provides methods for mapping and finding named keys.

Hierarchy

  • NamedKeys

Constructors

Properties

Methods

Constructors

Properties

keys: NamedKey[]

A list of NamedKey objects that are part of this collection.

Methods

  • Finds a Key by its name within the collection of named keys.

    Returns

    The Key associated with the named key if found.

    Throws

    If no named key with the specified name is found, throws ErrNamedKeyNotFound.

    Parameters

    • target: string

      The name of the named key to find.

    Returns Key

  • Converts the collection of named keys into a Map, where the key is the named key's name and the value is the associated key as a string.

    Returns

    A Map with the named key's name as the key and the associated key as the value.

    Returns Map<string, string>

Generated using TypeDoc