Skip to content

Commit 7e98c07

Browse files
authored
docs: format api-javascript.md (#2885)
1 parent a0f00ee commit 7e98c07

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/guide/api-javascript.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,34 @@ The `InlineConfig` interface extends `UserConfig` with additional properties:
3939
```ts
4040
interface ViteDevServer {
4141
/**
42-
* The resolved vite config object
42+
* The resolved vite config object.
4343
*/
4444
config: ResolvedConfig
4545
/**
4646
* A connect app instance
4747
* - Can be used to attach custom middlewares to the dev server.
4848
* - Can also be used as the handler function of a custom http server
49-
* or as a middleware in any connect-style Node.js frameworks
49+
* or as a middleware in any connect-style Node.js frameworks.
5050
*
5151
* https://github.com/senchalabs/connect#use-middleware
5252
*/
5353
middlewares: Connect.Server
5454
/**
55-
* native Node http server instance
56-
* will be null in middleware mode
55+
* Native Node http server instance.
56+
* Will be null in middleware mode.
5757
*/
5858
httpServer: http.Server | null
5959
/**
60-
* chokidar watcher instance
60+
* Chokidar watcher instance.
6161
* https://github.com/paulmillr/chokidar#api
6262
*/
6363
watcher: FSWatcher
6464
/**
65-
* web socket server with `send(payload)` method
65+
* Web socket server with `send(payload)` method.
6666
*/
6767
ws: WebSocketServer
6868
/**
69-
* Rollup plugin container that can run plugin hooks on a given file
69+
* Rollup plugin container that can run plugin hooks on a given file.
7070
*/
7171
pluginContainer: PluginContainer
7272
/**
@@ -104,7 +104,7 @@ interface ViteDevServer {
104104
options?: { isolated?: boolean }
105105
): Promise<Record<string, any>>
106106
/**
107-
* Fix ssr error stacktrace
107+
* Fix ssr error stacktrace.
108108
*/
109109
ssrFixStacktrace(e: Error): void
110110
/**

0 commit comments

Comments
 (0)