Sentry.init({
transportOptions: { shouldStore: () => true },
});
No TypeScript errors.
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
Is there an existing issue for this?
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=
Steps to Reproduce
Expected Result
No TypeScript errors.
Actual Result