Skip to content

Commit 037bf15

Browse files
committed
fix build
1 parent f765d07 commit 037bf15

File tree

1 file changed

+3
-2
lines changed
  • packages/node/src/integrations/anr

1 file changed

+3
-2
lines changed

packages/node/src/integrations/anr/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import type {
1616
Integration,
1717
IntegrationClass,
1818
IntegrationFn,
19+
IntegrationFnResult,
1920
ScopeData,
2021
} from '@sentry/types';
2122
import { GLOBAL_OBJ, dynamicRequire, logger } from '@sentry/utils';
@@ -130,10 +131,10 @@ const _anrIntegration = ((options: Partial<AnrIntegrationOptions> = {}) => {
130131
// This allows us to call into all integrations to fetch the full context
131132
setImmediate(() => this.startWorker());
132133
},
133-
} as Integration & AnrInternal;
134+
} as IntegrationFnResult & AnrInternal;
134135
}) satisfies IntegrationFn;
135136

136-
type AnrReturn = (options?: Partial<AnrIntegrationOptions>) => Integration & AnrInternal;
137+
type AnrReturn = (options?: Partial<AnrIntegrationOptions>) => IntegrationFnResult & AnrInternal;
137138

138139
export const anrIntegration = defineIntegration(_anrIntegration) as AnrReturn;
139140

0 commit comments

Comments
 (0)