Skip to main content
Universal constructor for creating BrandedStorageKey from various input types.

Signature

    Parameters

    • input (StorageKeyLike) - Input value to convert to storage key

    Returns

    BrandedStorageKey - Storage key instance

    Type Definition

    Examples

    From Object

      From Existing StorageKey

      Validation

      Type Safety

      from() provides compile-time type checking:

      Use Cases

      Generic Storage Operations

      API Wrapper