inital #2
This commit is contained in:
9
src/types/auth-proxy.d.ts
vendored
Normal file
9
src/types/auth-proxy.d.ts
vendored
Normal 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
5
src/types/json-prune.d.ts
vendored
Normal 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
5
src/types/logging.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
declare namespace Express {
|
||||
interface Request {
|
||||
noLogging: boolean|undefined;
|
||||
}
|
||||
}
|
||||
5
src/types/permissions.d.ts
vendored
Normal file
5
src/types/permissions.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
declare namespace Express {
|
||||
interface Request {
|
||||
permissionDetails?: import('role-acl').Permission;
|
||||
}
|
||||
}
|
||||
37
src/types/polyfill.d.ts
vendored
Normal file
37
src/types/polyfill.d.ts
vendored
Normal 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 };
|
||||
}
|
||||
Reference in New Issue
Block a user