mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
## Note this is early stages of said integration. Things will change! series and season working - added jellyseerr git submodule - augmentations - working jellyseerr search integration - working jellyseerr requests & updated interceptors to persist cookies from every response
17 lines
497 B
TypeScript
17 lines
497 B
TypeScript
import {MMKV} from "react-native-mmkv";
|
|
|
|
declare module "react-native-mmkv" {
|
|
interface MMKV {
|
|
get<T>(key: string): T | undefined
|
|
setAny(key: string, value: any | undefined): void
|
|
}
|
|
}
|
|
|
|
MMKV.prototype.get = function <T> (key: string): T | undefined {
|
|
const serializedItem = this.getString(key);
|
|
return serializedItem ? JSON.parse(serializedItem) : undefined;
|
|
}
|
|
|
|
MMKV.prototype.setAny = function (key: string, value: any | undefined): void {
|
|
this.set(key, JSON.stringify(value));
|
|
} |