Made polyfill route more flexible

This commit is contained in:
Sebastian Seedorf
2020-11-16 13:11:15 +01:00
parent 110e6f74e8
commit 99527fdb49
5 changed files with 32 additions and 34 deletions

2
out/polyfill.d.ts vendored
View File

@@ -12,7 +12,7 @@ export declare type PolyfillOptions = {
uaString: string;
rum: boolean;
};
declare function getRouter(opts?: Partial<PolyfillOptions>): RequestHandler;
declare function getRouter(fileToWatch: string, opts?: Partial<PolyfillOptions>): RequestHandler;
export declare const Polyfill: {
getRouter: typeof getRouter;
};