AutoReloader generalization

This commit is contained in:
Sebastian Seedorf
2020-11-18 23:38:53 +01:00
parent 18d4cc0ec0
commit ad653f6568
3 changed files with 105 additions and 51 deletions

12
out/auto-reload.d.ts vendored
View File

@@ -1,3 +1,11 @@
export declare const AutoReloader: {
router: import("express-serve-static-core").Router;
import { Router } from 'express';
export declare type ReloaderConfig = {
frontendDirs: string | string[];
subPath?: string;
jsName?: string;
};
declare function getRouter(opts: ReloaderConfig): Router;
export declare const AutoReloader: {
getRouter: typeof getRouter;
};
export {};