@hot-updater/standalone
Version:
React Native OTA solution for self-hosted
13 lines (12 loc) • 600 B
TypeScript
import type { BasePluginArgs, StoragePlugin, StoragePluginHooks } from "@hot-updater/plugin-core";
import type { RouteConfig } from "./standaloneRepository";
export interface StorageRoutes {
uploadBundle: (bundleId: string, bundlePath: string) => RouteConfig;
deleteBundle: (bundleId: string) => RouteConfig;
}
export interface StandaloneStorageConfig {
baseUrl: string;
commonHeaders?: Record<string, string>;
routes?: StorageRoutes;
}
export declare const standaloneStorage: (config: StandaloneStorageConfig, hooks?: StoragePluginHooks) => (_: BasePluginArgs) => StoragePlugin;