LocalData/Sources/LocalData/Models/AnyStorageKey.swift
Matt Bruce 68e0bccb27 Update Models, Protocols, Services and tests, docs
Summary:
- Sources: update Models, Protocols, Services
- Tests: update tests for LocalDataTests.swift
- Docs: update docs for FutureEnhancements, README

Stats:
- 11 files changed, 85 insertions(+), 27 deletions(-)
2026-01-18 13:43:07 -06:00

12 lines
290 B
Swift

public struct AnyStorageKey: Sendable {
public let descriptor: StorageKeyDescriptor
public init<Key: StorageKey>(_ key: Key) {
self.descriptor = .from(key)
}
public static func key<Key: StorageKey>(_ key: Key) -> AnyStorageKey {
AnyStorageKey(key)
}
}