Skip to content

Commit 30f868b

Browse files
committed
type: fix watch option type error. #334
1 parent 07892df commit 30f868b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import bodyParser from 'body-parser';
77
import httpProxy from 'http-proxy';
88
import * as toRegexp from 'path-to-regexp';
99
import clearModule from 'clear-module';
10-
import chokidar from 'chokidar';
10+
import chokidar, { ChokidarOptions } from 'chokidar';
1111
import color from 'colors-cli/safe';
1212
import { proxyHandle } from './proxyHandle';
1313
import { mockerHandle } from './mockerHandle';
@@ -166,7 +166,7 @@ export interface MockerOption {
166166
* Options object as defined [chokidar api options](https://github.com/paulmillr/chokidar#api)
167167
* @default `{}`
168168
*/
169-
watchOptions?: chokidar.WatchOptions;
169+
watchOptions?: ChokidarOptions;
170170
/**
171171
* Access Control Allow options.
172172
* @default `{}`

0 commit comments

Comments
 (0)