@@ -10,7 +10,7 @@ type RequestDataIntegrationOptions = {
10
10
/**
11
11
* Controls what data is pulled from the request and added to the event
12
12
*/
13
- include : {
13
+ include ? : {
14
14
cookies ?: boolean ;
15
15
data ?: boolean ;
16
16
headers ?: boolean ;
@@ -27,7 +27,7 @@ type RequestDataIntegrationOptions = {
27
27
} ;
28
28
29
29
/** Whether to identify transactions by parameterized path, parameterized path with method, or handler name */
30
- transactionNamingScheme : TransactionNamingScheme ;
30
+ transactionNamingScheme ? : TransactionNamingScheme ;
31
31
} ;
32
32
33
33
const DEFAULT_OPTIONS = {
@@ -67,12 +67,12 @@ export class RequestData implements Integration {
67
67
*/
68
68
protected _addRequestData : ( event : Event , req : PolymorphicRequest , options ?: { [ key : string ] : unknown } ) => Event ;
69
69
70
- private _options : RequestDataIntegrationOptions ;
70
+ private _options : Required < RequestDataIntegrationOptions > ;
71
71
72
72
/**
73
73
* @inheritDoc
74
74
*/
75
- public constructor ( options : Partial < RequestDataIntegrationOptions > = { } ) {
75
+ public constructor ( options : RequestDataIntegrationOptions = { } ) {
76
76
this . _addRequestData = addRequestDataToEvent ;
77
77
this . _options = {
78
78
...DEFAULT_OPTIONS ,
@@ -155,7 +155,7 @@ export class RequestData implements Integration {
155
155
/** Convert this integration's options to match what `addRequestDataToEvent` expects */
156
156
/** TODO: Can possibly be deleted once https://github.com/getsentry/sentry-javascript/issues/5718 is fixed */
157
157
function convertReqDataIntegrationOptsToAddReqDataOpts (
158
- integrationOptions : RequestDataIntegrationOptions ,
158
+ integrationOptions : Required < RequestDataIntegrationOptions > ,
159
159
) : AddRequestDataToEventOptions {
160
160
const {
161
161
transactionNamingScheme,
0 commit comments