aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2019-08-20 01:46:41 +0300
committerValentin Popov <info@valentineus.link>2019-08-20 01:46:41 +0300
commit22989465538f64e86fe5ac0235e322133b95056c (patch)
tree7c4f1f92310562e8087e3314dc2beac4661b3be1 /src
parenta6b4bc15ebcfc3aa358fcfc95967da56381f0603 (diff)
downloadelectron-hot-reload-22989465538f64e86fe5ac0235e322133b95056c.tar.xz
electron-hot-reload-22989465538f64e86fe5ac0235e322133b95056c.zip
Initial test application
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/index.ts7
-rw-r--r--src/mainReloader.ts3
-rw-r--r--src/rendererReloader.ts3
3 files changed, 13 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
new file mode 100644
index 0000000..82df114
--- /dev/null
+++ b/src/index.ts
@@ -0,0 +1,7 @@
+import { mainReloader } from "./mainReloader";
+import { rendererReloader } from "./rendererReloader";
+
+export {
+ mainReloader,
+ rendererReloader,
+};
diff --git a/src/mainReloader.ts b/src/mainReloader.ts
new file mode 100644
index 0000000..5bd0fed
--- /dev/null
+++ b/src/mainReloader.ts
@@ -0,0 +1,3 @@
+type TMainReloader = (paths: string[], ignored?: string[], handler?: (path: string) => void) => void;
+
+export const mainReloader: TMainReloader = (paths, ignored, handler) => { };
diff --git a/src/rendererReloader.ts b/src/rendererReloader.ts
new file mode 100644
index 0000000..63178cf
--- /dev/null
+++ b/src/rendererReloader.ts
@@ -0,0 +1,3 @@
+type TRendererReloader = (paths: string[], ignored?: string[], handler?: (path: string) => void) => void;
+
+export const rendererReloader: TRendererReloader = (paths, ignored, handler) => { };