Represents a hierarchically-organized key that can be namespaced. This interface enforces equality comparison to ensure keys with the same namespace and value are considered equal.

IMPORT_PATH: "@daiso-tech/core/namespace/contracts"

interface IKey {
    equals(value: IKey): boolean;
    get(): string;
    toString(): string;
}

Hierarchy (View Summary)

Methods

  • Checks if this value equals the given value. Implementation defines what "equal" means for this type.

    Parameters

    • value: IKey

      The value to compare against

    Returns boolean

    True if values are equal, false otherwise