Open
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
8.27.0
Framework Version
react 16
Link to Sentry event
No response
Reproduction Example/SDK Setup
typescript version: 4.6.2=
Sentry.init({
transportOptions: { shouldStore: () => true },
});
Steps to Reproduce
Sentry.init({
transportOptions: { shouldStore: () => true },
});
Expected Result
No TypeScript errors.
Actual Result
TS2322: Type
{ shouldStore: (envelope: Envelope) => boolean; }
is not assignable to type Partial<BrowserTransportOptions>
Object literal may only specify known properties, and shouldStore does not exist in type Partial<BrowserTransportOptions>
options.d.ts(64, 5): The expected type comes from property transportOptions which is declared here on type BrowserOptions
Metadata
Metadata
Assignees
Type
Projects
Status
No status