UNPKG

1.12 kBTypeScriptView Raw
1import { Client, Integration } from '@sentry/types';
2import { Hub } from './hub';
3import { Scope } from './scope';
4/**
5 * A layer in the process stack.
6 * @hidden
7 */
8export interface Layer {
9 client?: Client;
10 scope?: Scope;
11}
12/**
13 * An object that contains a hub and maintains a scope stack.
14 * @hidden
15 */
16export interface Carrier {
17 __SENTRY__?: {
18 hub?: Hub;
19 /**
20 * Extra Hub properties injected by various SDKs
21 */
22 integrations?: Integration[];
23 extensions?: {
24 /** Hack to prevent bundlers from breaking our usage of the domain package in the cross-platform Hub package */
25 domain?: {
26 [key: string]: any;
27 };
28 } & {
29 /** Extension methods for the hub, which are bound to the current Hub instance */
30 [key: string]: Function;
31 };
32 };
33}
34/**
35 * @hidden
36 * @deprecated Can be removed once `Hub.getActiveDomain` is removed.
37 */
38export interface DomainAsCarrier extends Carrier {
39 members: {
40 [key: string]: any;
41 }[];
42}
43//# sourceMappingURL=interfaces.d.ts.map
\No newline at end of file