This commit is contained in:
Sebastian Seedorf
2020-11-16 10:01:58 +01:00
parent 7fbc95f86a
commit 2629d1e8e9
55 changed files with 4904 additions and 0 deletions

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

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

5
src/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
src/types/logging.d.ts vendored Normal file
View File

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

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

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

37
src/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 };
}