forked from BlueBrain/nexus-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.d.ts
75 lines (67 loc) · 1.71 KB
/
custom.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
declare module '*.svg' {
const content: any;
export default content;
}
declare module '*.png' {
const content: any;
export default content;
}
// loading raw text or other files
declare module '!!raw-loader!*' {
const contents: string;
export = contents;
}
//
// Identicon.js Types
//
declare class Identicon {
constructor(hash: string, options: number | Identicon.IdenticonOptions);
toString(): string;
}
declare module Identicon {
export enum Format {
svg = 'svg',
png = 'png',
}
export interface IdenticonOptions {
foreground?: [number, number, number, number];
background?: [number, number, number, number];
margin?: number;
size?: number;
format?: Format;
}
}
declare module 'identicon.js' {
export = Identicon;
}
declare module 'dotparser';
declare module promBundle {
export interface PromBundleOptions {
includeMethod?: boolean;
includeStatusCode?: boolean;
includePath?: boolean;
customLabels?: [{ [label: string]: string }];
includeUp?: boolean;
metricsPath?: string;
normalizePath?: (req: Express.Request) => any | [];
urlValueParser?: string;
formatStatusCode?(res: Express.Response): any;
transformLabels?(
labels: promBundle.PromBundleOptions['customLabels'],
req: Express.Request,
res: Express.Response
): any;
metricType?: 'histogram' | 'summary';
buckets?: [number];
percentiles?: [number];
autoregister?: boolean;
promClient?: any;
}
}
declare function promBundle(options: promBundle.PromBundleOptions): any;
declare module 'express-prom-bundle' {
export = promBundle;
}
declare module 'cytoscape-cola';
declare module 'react-google-tag-manager';
declare module 'string-similarity';