Files
node-pkg-express-utils/out/polyfill.d.ts
2020-11-16 13:11:15 +01:00

20 lines
528 B
TypeScript

import { RequestHandler } from 'express';
export declare type PolyfillFeatureList = {
[featureName: string]: {
flags?: string[];
};
};
export declare type PolyfillOptions = {
minify: boolean;
unknown: 'polyfill' | 'ignore';
features: PolyfillFeatureList;
excludes: string[];
uaString: string;
rum: boolean;
};
declare function getRouter(fileToWatch: string, opts?: Partial<PolyfillOptions>): RequestHandler;
export declare const Polyfill: {
getRouter: typeof getRouter;
};
export {};