Moved utils to another repository

This commit is contained in:
Sebastian Seedorf
2020-11-16 13:14:05 +01:00
parent 689e087aef
commit 0597b36ef3
25 changed files with 64 additions and 571 deletions

9
types/auth-proxy.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
declare namespace Express {
interface Request {
getUserInfo(): Promise<import('pkg-express-utils').UserInfo|undefined>;
}
interface Response {
initLogout(): boolean;
}
}

5
types/json-prune.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
declare module "json-prune" {
function prune(object: unknown): string;
export = prune;
}

5
types/logging.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
declare namespace Express {
interface Request {
noLogging: boolean|undefined;
}
}

5
types/permissions.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
declare namespace Express {
interface Request {
permissionDetails?: import('role-acl').Permission;
}
}

37
types/polyfill.d.ts vendored Normal file
View File

@@ -0,0 +1,37 @@
declare module "polyfill-library" {
import {Readable} from 'stream';
function listAllPolyfills(): string[];
function describePolyfill(featureName: string): Promise<PolyfillMetadata|undefined>;
function getOptions(opts: Partial<PolyfillOptions>): PolyfillOptions;
function getPolyfills(opts: Partial<PolyfillOptions>): Promise<PolyfillFeatures>;
function getPolyfillString(opts: Partial<PolyfillOptions>&{stream?: true}): Readable;
function getPolyfillString(opts: Partial<PolyfillOptions>&{stream: false}): Promise<string>;
type PolyfillMetadata = {
};
type PolyfillFeatureList = {
[featureName: string]: {
flags?: string[]
}
};
type PolyfillOptions = {
minify: boolean,
unknown: 'polyfill'|'ignore',
features: PolyfillFeatureList,
excludes: string[],
uaString: string,
rum: boolean,
};
type PolyfillFeature = {
flags: string[],
dependencyOf: string[],
aliasOf: string[],
}
type PolyfillFeatures = { [featureName: string]: PolyfillFeature };
}