This commit is contained in:
Sebastian Seedorf
2020-11-16 13:02:45 +01:00
parent 9250c71c51
commit 110e6f74e8
4 changed files with 13 additions and 4 deletions

2
out/index.d.ts vendored
View File

@@ -5,7 +5,7 @@ export { AuthProxy } from './auth-proxy';
export { Resolvable, WaitForSync } from './helpers/resolvable';
export { urlJoin } from './helpers/urlJoin';
export { AutoReloader } from './auto-reload';
export { Polyfill, PolyfillOptions } from './polyfill';
export { Polyfill, PolyfillOptions, PolyfillFeatureList } from './polyfill';
export { Session } from './session';
export { Permissions } from './permissions';
export { UserInfo } from './helpers/userinfo';

6
out/polyfill.d.ts vendored
View File

@@ -1,5 +1,9 @@
import { RequestHandler } from 'express';
import { PolyfillFeatureList } from 'polyfill-library';
export declare type PolyfillFeatureList = {
[featureName: string]: {
flags?: string[];
};
};
export declare type PolyfillOptions = {
minify: boolean;
unknown: 'polyfill' | 'ignore';

View File

@@ -5,7 +5,7 @@ export {AuthProxy} from './auth-proxy';
export {Resolvable, WaitForSync} from './helpers/resolvable';
export {urlJoin} from './helpers/urlJoin';
export {AutoReloader} from './auto-reload';
export {Polyfill, PolyfillOptions} from './polyfill';
export {Polyfill, PolyfillOptions, PolyfillFeatureList} from './polyfill';
export {Session} from './session';
export {Permissions} from './permissions';

View File

@@ -1,10 +1,15 @@
import {RequestHandler} from 'express';
import * as polyfillLibrary from 'polyfill-library';
import {PolyfillFeatureList} from 'polyfill-library';
import {DefaultConfig, Logger, WaitForSync} from '.';
import {spawn, Thread, Worker} from 'threads';
import {WorkerFunction} from 'threads/dist/types/worker';
export type PolyfillFeatureList = {
[featureName: string]: {
flags?: string[]
}
};
export type PolyfillOptions = {
minify: boolean,
unknown: 'polyfill'|'ignore',