Skip to content

Commit 90184af

Browse files
committed
fixup! feat(effect): Add client/server entrypoints without functionality
1 parent 85c00da commit 90184af

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

packages/effect/src/index.types.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,24 @@
33
// We export everything from both the client part of the SDK and from the server part.
44
// Some of the exports collide, which is not allowed, unless we redefine the colliding
55
// exports in this file - which we do below.
6+
import type { Client, Integration, Options, StackParser } from '@sentry/core';
67
import type * as EffectLayer from 'effect/Layer';
7-
import type { EffectClientLayerOptions } from './index.client';
8-
import type { EffectServerLayerOptions } from './index.server';
8+
import type * as clientSdk from './index.client';
9+
import type * as serverSdk from './index.server';
910

10-
export * from './client/index';
11-
export * from './server/index';
11+
export * from './index.client';
12+
export * from './index.server';
1213

13-
/** Creates an Effect Layer that initializes Sentry and integrates tracing, logging, and metrics. */
14-
export declare function effectLayer(options: EffectClientLayerOptions | EffectServerLayerOptions): EffectLayer.Layer<never, never, never>;
14+
export type { EffectClientLayerOptions } from './index.client';
15+
export type { EffectServerLayerOptions } from './index.server';
16+
17+
export declare function effectLayer(
18+
options: clientSdk.EffectClientLayerOptions | serverSdk.EffectServerLayerOptions,
19+
): EffectLayer.Layer<never, never, never>;
20+
21+
export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined;
22+
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
23+
export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
24+
export declare const getDefaultIntegrations: (options: Options) => Integration[];
25+
export declare const defaultStackParser: StackParser;
26+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;

0 commit comments

Comments
 (0)