UNPKG

strata-storage

Version:

Zero-dependency universal storage plugin providing a unified API for all storage operations across web, Android, and iOS platforms

28 lines (27 loc) 781 B
/** * Core type definitions for Strata Storage * Zero dependencies - all types defined from scratch */ /** * Storage strategies for automatic adapter selection */ export var StorageStrategy; (function (StorageStrategy) { StorageStrategy["PERFORMANCE_FIRST"] = "performance_first"; StorageStrategy["PERSISTENCE_FIRST"] = "persistence_first"; StorageStrategy["SECURITY_FIRST"] = "security_first"; StorageStrategy["CAPACITY_FIRST"] = "capacity_first"; })(StorageStrategy || (StorageStrategy = {})); /** * Storage error class */ export class StorageError extends Error { code; details; constructor(message, code, details) { super(message); this.code = code; this.details = details; this.name = 'StorageError'; } }