-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathindex.d.ts
41 lines (33 loc) · 935 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
declare namespace electronReloader {
interface Options {
/**
Ignore patterns passed to [`chokidar`](https://github.com/paulmillr/chokidar#path-filtering).
By default, files/directories starting with a `.`, `.map` files, and `node_modules` directories are ignored. This option is additive to those.
*/
readonly ignore?: ReadonlyArray<string | RegExp>;
/**
Watch files used in the renderer process and reload the window when they change.
@default true
*/
readonly watchRenderer?: boolean;
/**
Prints watched paths and when files change. Can be useful to make sure you set it up correctly.
@default false
*/
readonly debug?: boolean;
}
}
/**
@param moduleObject - Global `module` object.
@example
```
try {
require('electron-reloader')(module);
} catch {}
```
*/
declare function electronReloader(
moduleObject: NodeModule,
options?: electronReloader.Options
): void;
export = electronReloader;