UNPKG

825 BTypeScriptView Raw
1/** Supported Sentry transport protocols in a Dsn. */
2export declare type DsnProtocol = 'http' | 'https';
3/** Primitive components of a Dsn. */
4export interface DsnComponents {
5 /** Protocol used to connect to Sentry. */
6 protocol: DsnProtocol;
7 /** Public authorization key (deprecated, renamed to publicKey). */
8 user?: string;
9 /** Public authorization key. */
10 publicKey?: string;
11 /** Private authorization key (deprecated, optional). */
12 pass?: string;
13 /** Hostname of the Sentry instance. */
14 host: string;
15 /** Port of the Sentry instance. */
16 port?: string;
17 /** Sub path/ */
18 path?: string;
19 /** Project ID */
20 projectId: string;
21}
22/** Anything that can be parsed into a Dsn. */
23export declare type DsnLike = string | DsnComponents;
24//# sourceMappingURL=dsn.d.ts.map
\No newline at end of file