-
Notifications
You must be signed in to change notification settings - Fork 443
/
api.md
65 lines (53 loc) · 1.93 KB
/
api.md
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
## API Report File for "@builder.io/partytown-integration"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
// Warning: (ae-forgotten-export) The symbol "ApplyHookOptions" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export type ApplyHook = (opts: ApplyHookOptions) => any;
// Warning: (ae-forgotten-export) The symbol "GetHookOptions" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export type GetHook = (opts: GetHookOptions) => any;
// @public
export interface PartytownConfig {
// (undocumented)
apply?: ApplyHook;
debug?: boolean;
forward?: PartytownForwardProperty[];
// (undocumented)
get?: GetHook;
globalFns?: string[];
lib?: string;
loadScriptsOnMainThread?: string[];
logCalls?: boolean;
logGetters?: boolean;
logImageRequests?: boolean;
logMainAccess?: boolean;
logScriptExecution?: boolean;
logSendBeaconRequests?: boolean;
logSetters?: boolean;
logStackTraces?: boolean;
// (undocumented)
mainWindowAccessors?: string[];
nonce?: string;
resolveUrl?(url: URL, location: Location, type: ResolveUrlType): URL | undefined | null;
sandboxParent?: string;
// (undocumented)
set?: SetHook;
swPath?: string;
}
// @public
export type PartytownForwardProperty = string;
// @public
export const partytownSnippet: (config?: PartytownConfig | undefined) => string;
// @public (undocumented)
export type ResolveUrlType = 'fetch' | 'xhr' | 'script' | 'iframe' | 'image';
// @public
export const SCRIPT_TYPE = "text/partytown";
// Warning: (ae-forgotten-export) The symbol "SetHookOptions" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export type SetHook = (opts: SetHookOptions) => any;
// (No @packageDocumentation comment for this package)
```