20 lines
528 B
TypeScript
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 {};
|