mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-03 19:24:52 +08:00
21 lines
519 B
TypeScript
21 lines
519 B
TypeScript
// Define a simple storage configuration service
|
|
export interface StorageConfig {
|
|
storageType: string | undefined;
|
|
getStorageType: () => string | undefined;
|
|
setStorageType: (type: string | undefined) => void;
|
|
}
|
|
|
|
// Create a singleton instance
|
|
export const storageConfig: StorageConfig = {
|
|
// Default to undefined (will fallback to local storage)
|
|
storageType: undefined,
|
|
|
|
getStorageType() {
|
|
return this.storageType;
|
|
},
|
|
|
|
setStorageType(type: string | undefined) {
|
|
this.storageType = type;
|
|
},
|
|
};
|