8000 ref: Remove return type of `init` and make it void · szechyjs/sentry-javascript@f71c3c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit f71c3c9

Browse files
ref: Remove return type of init and make it void
1 parent e9547ce commit f71c3c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/nextjs/src/index.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { NextjsOptions } from './utils/nextjsOptions';
77
export * from '@sentry/react';
88

99
/** Inits the Sentry NextJS SDK on the browser with the React SDK. */
10-
export function init(options: NextjsOptions): any {
10+
export function init(options: NextjsOptions): void {
1111
const metadataBuilder = new MetadataBuilder(options, ['nextjs', 'react']);
1212
metadataBuilder.addSdkMetadata();
1313
const initDecider = new InitDecider(options);

packages/nextjs/src/index.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export * from '@sentry/node';
1111
export { ErrorBoundary, withErrorBoundary } from '@sentry/react';
1212

1313
/** Inits the Sentry NextJS SDK on node. */
14-
export function init(options: NextjsOptions): any {
14+
export function init(options: NextjsOptions): void {
1515
const metadataBuilder = new MetadataBuilder(options, ['nextjs', 'node']);
1616
metadataBuilder.addSdkMetadata();
1717
const initDecider = new InitDecider(options);

0 commit comments

Comments
 (0)
0