Skip to content

Commit 4059bbd

Browse files
authored
fix(types): Fix incorrect sampled type on Transaction (#11146)
`@sentry/types` does not align with `@sentry/core`, and it causes build errors when `exactOptionalPropertyTypes` is `true`. This patch fixes the type error by explicitly specifying `undefined`.
1 parent 98c8709 commit 4059bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/types/src/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface Transaction extends TransactionContext, Omit<Span, 'setName' |
6666
* Was this transaction chosen to be sent as part of the sample?
6767
* @deprecated Use `spanIsSampled(transaction)` instead.
6868
*/
69-
sampled?: boolean;
69+
sampled?: boolean | undefined;
7070

7171
/**
7272
* @inheritDoc

0 commit comments

Comments
 (0)