Skip to content

Commit 3c573d5

Browse files
committed
fix type exports in metaframeworks
1 parent 3447bb6 commit 3c573d5

File tree

8 files changed

+18
-0
lines changed

8 files changed

+18
-0
lines changed

packages/astro/src/index.types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import type { NodeOptions } from '@sentry/node';
1010
import type { Client, Integration, Options, StackParser } from '@sentry/core';
1111

1212
import type * as clientSdk from './index.client';
13+
import type * as serverSdk from './index.server';
1314
import sentryAstro from './index.server';
1415

1516
/** Initializes Sentry Astro SDK */
@@ -26,4 +27,6 @@ export declare function flush(timeout?: number | undefined): PromiseLike<boolean
2627

2728
export declare const Span: clientSdk.Span;
2829

30+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
31+
2932
export default sentryAstro;

packages/nextjs/src/index.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer;
3232
export declare const showReportDialog: typeof clientSdk.showReportDialog;
3333
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
3434

35+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
36+
3537
export { withSentryConfig } from './config';
3638

3739
/**

packages/nuxt/src/index.types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Client, Integration, Options, StackParser } from '@sentry/core';
22
import type { SentryNuxtClientOptions, SentryNuxtServerOptions } from './common/types';
33
import type * as clientSdk from './index.client';
4+
import type * as serverSdk from './index.server';
45

56
// We export everything from both the client part of the SDK and from the server part. Some of the exports collide,
67
// which is not allowed, unless we re-export the colliding exports in this file - which we do below.
@@ -13,3 +14,5 @@ export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsInteg
1314
export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration;
1415
export declare const getDefaultIntegrations: (options: Options) => Integration[];
1516
export declare const defaultStackParser: StackParser;
17+
18+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;

packages/react-router/src/index.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ export declare const contextLinesIntegration: typeof clientSdk.contextLinesInteg
1515
export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration;
1616
export declare const defaultStackParser: StackParser;
1717
export declare const getDefaultIntegrations: (options: Options) => Integration[];
18+
19+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;

packages/remix/src/index.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export declare const defaultStackParser: StackParser;
2121

2222
export declare function captureRemixServerException(err: unknown, name: string, request: Request): Promise<void>;
2323

24+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;
25+
2426
// This variable is not a runtime variable but just a type to tell typescript that the methods below can either come
2527
// from the client SDK or from the server SDK. TypeScript is smart enough to understand that these resolve to the same
2628
// methods from `@sentry/core`.

packages/solidstart/src/index.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ export declare const defaultStackParser: StackParser;
2222
export declare function close(timeout?: number | undefined): PromiseLike<boolean>;
2323
export declare function flush(timeout?: number | undefined): PromiseLike<boolean>;
2424
export declare function lastEventId(): string | undefined;
25+
26+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;

packages/sveltekit/src/index.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ export declare function flush(timeout?: number | undefined): PromiseLike<boolean
5353
export declare function lastEventId(): string | undefined;
5454

5555
export declare function trackComponent(options: clientSdk.TrackingOptions): ReturnType<typeof clientSdk.trackComponent>;
56+
57+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;

packages/tanstackstart-react/src/index.types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ export declare const ErrorBoundary: typeof clientSdk.ErrorBoundary;
2525
export declare const createReduxEnhancer: typeof clientSdk.createReduxEnhancer;
2626
export declare const showReportDialog: typeof clientSdk.showReportDialog;
2727
export declare const withErrorBoundary: typeof clientSdk.withErrorBoundary;
28+
29+
export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger;

0 commit comments

Comments
 (0)