mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-05 16:10:11 +08:00
Add middleware to browser-sync Options
This commit is contained in:
Vendored
+2
-8
@@ -34,7 +34,7 @@ declare module "browser-sync" {
|
||||
* Default: undefined
|
||||
* Note: requires at least version 2.6.0
|
||||
*/
|
||||
watchOptions?: ChokidarOptions;
|
||||
watchOptions?: chokidar.WatchOptions;
|
||||
/**
|
||||
* Use the built-in static server for basic HTML/JS/CSS websites.
|
||||
* Default: false
|
||||
@@ -243,19 +243,13 @@ declare module "browser-sync" {
|
||||
* Note: requires at least version 1.6.2
|
||||
*/
|
||||
socket?: SocketOptions;
|
||||
middleware?: MiddlewareHandler | MiddlewareHandler[];
|
||||
}
|
||||
|
||||
interface Hash<T> {
|
||||
[path: string]: T;
|
||||
}
|
||||
|
||||
interface ChokidarOptions {
|
||||
interval?: number;
|
||||
debounceDelay?: number;
|
||||
mode?: string;
|
||||
cwd?: string;
|
||||
}
|
||||
|
||||
interface UIOptions {
|
||||
/** set the default port */
|
||||
port?: number;
|
||||
|
||||
Reference in New Issue
Block a user