Files
node-pkg-express-utils/out/polyfill.d.ts
Sebastian Seedorf 110e6f74e8 inital #6
2020-11-16 13:02:45 +01:00

20 lines
507 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(opts?: Partial<PolyfillOptions>): RequestHandler;
export declare const Polyfill: {
getRouter: typeof getRouter;
};
export {};