LocalData/Sources/LocalData/Protocols/StorageKey.swift
Matt Bruce 70534f647b Update Migrations, Models, Protocols (+2 more) and tests, docs
Summary:
- Sources: update Migrations, Models, Protocols (+2 more)
- Tests: update tests for AnyStorageKeyTests.swift, MigrationAdditionalTests.swift, MigrationIntegrationTests.swift (+3 more)
- Docs: update docs for Migration, Migration_Refactor_Plan_Clean, Proposal (+1 more)

Stats:
- 31 files changed, 2820 insertions(+), 80 deletions(-)
2026-01-18 13:43:10 -06:00

21 lines
536 B
Swift

import Foundation
public protocol StorageKey: Sendable, CustomStringConvertible {
associatedtype Value: Codable & Sendable
var name: String { get }
var domain: StorageDomain { get }
var security: SecurityPolicy { get }
var serializer: Serializer<Value> { get }
var owner: String { get }
var availability: PlatformAvailability { get }
var syncPolicy: SyncPolicy { get }
var migration: AnyStorageMigration? { get }
}
extension StorageKey {
public var migration: AnyStorageMigration? { nil }
}