@callstack/repack-dev-server
Version:
A bundler-agnostic development server for React Native applications as part of @callstack/repack.
18 lines (17 loc) • 702 B
TypeScript
import type { ServerOptions as HttpsServerOptions } from 'node:https';
import type * as DevMiddleware from '@react-native/dev-middleware';
import type { Options as ProxyOptions } from 'http-proxy-middleware';
import type { Server, SetupMiddlewaresFunction } from '../types.js';
export interface NormalizedOptions {
host: string;
port: number;
https: HttpsServerOptions | undefined;
hot: boolean;
proxy: ProxyOptions[] | undefined;
url: string;
disableRequestLogging: boolean;
devMiddleware: typeof DevMiddleware;
rootDir: string;
setupMiddlewares: SetupMiddlewaresFunction;
}
export declare function normalizeOptions(options: Server.Options): NormalizedOptions;