INamespace: { create(key: string): IKey; toString(): string }

Factory interface for creating namespaced keys. Provides a way to organize keys into logical groups/namespaces for better key management and collision prevention. This contract is used throughout the library for creating properly namespaced keys.

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

Type declaration

  • create:function
    • Creates a new IKey object within this namespace. The returned key will include this namespace's prefix.

      Parameters

      • key: string

        The raw key string (namespace prefix will be added automatically)

      Returns IKey

      A new namespaced key instance

  • toString:function