This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
implementation(libs.spring.webflux) | |
implementation(libs.spring.websocket) { | |
exclude(group: 'org.springframework.boot', module: 'spring-boot-starter-web') | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-check | |
import path from "path"; | |
import { fileURLToPath } from "url"; | |
import { fixupPluginRules } from "@eslint/compat"; | |
import { FlatCompat } from "@eslint/eslintrc"; | |
import eslintJs from "@eslint/js"; | |
import stylistic from "@stylistic/eslint-plugin"; | |
import jsdoc from "eslint-plugin-jsdoc"; | |
import perfectionist from "eslint-plugin-perfectionist"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EmptyStorageModel, IStorageBackend, StorageOptions } from "@react-native-community/async-storage"; | |
export default class MockAsyncStorage<T = EmptyStorageModel> implements IStorageBackend<T> { | |
private MOCK_STORAGE: T = {} as T; | |
public async getSingle<K extends keyof T>(key: K, opts?: StorageOptions): Promise<T[K] | null> { | |
const obj = await this.getMany<K>([key], opts); | |
return obj[key] ?? null; | |
} |