-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.d.ts
42 lines (34 loc) · 995 Bytes
/
index.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
declare module "treblle" {
type OptionsBase = {
apiKey: string;
projectId: string;
additionalFieldsToMask?: string[];
showErrors?: boolean;
blocklistPaths?: string[]|RegExp;
};
type StrapiOptionsBase = {
apiKey: string;
projectId: string;
additionalFieldsToMask?: string[];
showErrors?: boolean;
blocklistPaths?: string[]|RegExp;
ignoreAdminRoutes?: string[];
};
type FetchEvent = any;
type Request = any;
type Response = any;
export function useTreblle(app: any, options: any): void;
export function koaTreblle(
options: OptionsBase
): Function;
export function strapiTreblle(
options: StrapiOptionsBase
): Function;
export function serviceWorkerTreblle(
options: OptionsBase
): (event: FetchEvent) => void;
export function moduleWorkerTreblle(
options: OptionsBase
): (request: Request) => Promise<Response> | Response;
export function useNestTreblle(app: any, options: OptionsBase): void;
}