20 lines
841 B
Plaintext
20 lines
841 B
Plaintext
/// <reference types="node" resolution-mode="require"/>
|
||
/// <reference types="node" resolution-mode="require"/>
|
||
import type * as vite from 'vite';
|
||
import type http from 'node:http';
|
||
import type { AddressInfo } from 'node:net';
|
||
import type { AstroInlineConfig } from '../../@types/astro.js';
|
||
export interface DevServer {
|
||
address: AddressInfo;
|
||
handle: (req: http.IncomingMessage, res: http.ServerResponse<http.IncomingMessage>) => void;
|
||
watcher: vite.FSWatcher;
|
||
stop(): Promise<void>;
|
||
}
|
||
/**
|
||
* Runs Astro’s development server. This is a local HTTP server that doesn’t bundle assets.
|
||
* It uses Hot Module Replacement (HMR) to update your browser as you save changes in your editor.
|
||
*
|
||
* @experimental The JavaScript API is experimental
|
||
*/
|
||
export default function dev(inlineConfig: AstroInlineConfig): Promise<DevServer>;
|