UNPKG

@callstack/repack-dev-server

Version:

A bundler-agnostic development server for React Native applications as part of @callstack/repack.

14 lines (13 loc) 1 kB
import Fastify from 'fastify'; import { type Server } from './types.js'; /** * Create instance of development server, powered by Fastify. * * @param config Server configuration. * @returns `start` and `stop` functions as well as an underlying Fastify `instance`. */ export declare function createServer(config: Server.Config): Promise<{ start: () => Promise<void>; stop: () => Promise<void>; instance: Fastify.FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, Fastify.FastifyBaseLogger, Fastify.FastifyTypeProviderDefault> & PromiseLike<Fastify.FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, Fastify.FastifyBaseLogger, Fastify.FastifyTypeProviderDefault>>; }>;