@@ -15,7 +15,7 @@ import {
15
15
SUBMIT_BUTTON_LABEL ,
16
16
SUCCESS_MESSAGE_TEXT ,
17
17
} from './constants' ;
18
- import type { FeedbackConfigurationWithDefaults , Widget } from './types' ;
18
+ import type { CreateWidgetOptionOverrides , FeedbackConfigurationWithDefaults , Widget } from './types' ;
19
19
import { createActorStyles } from './widget/Actor.css' ;
20
20
import { createShadowHost } from './widget/createShadowHost' ;
21
21
import { createWidget } from './widget/createWidget' ;
@@ -84,7 +84,6 @@ export class Feedback implements Integration {
84
84
85
85
public constructor ( {
86
86
id = 'sentry-feedback' ,
87
- // attachTo = null,
88
87
autoInject = true ,
89
88
showEmail = true ,
90
89
showName = true ,
@@ -130,7 +129,6 @@ export class Feedback implements Integration {
130
129
131
130
this . options = {
132
131
id,
133
- // attachTo,
134
132
autoInject,
135
133
isAnonymous,
136
134
isEmailRequired,
@@ -200,7 +198,7 @@ export class Feedback implements Integration {
200
198
/**
201
199
* Adds click listener to attached element to open a feedback dialog
202
200
*/
203
- public attachTo ( el : Node | string , optionOverrides : Partial < FeedbackConfigurationWithDefaults > ) : Widget | null {
201
+ public attachTo ( el : Node | string , optionOverrides : CreateWidgetOptionOverrides ) : Widget | null {
204
202
try {
205
203
const options = Object . assign ( { } , this . options , optionOverrides ) ;
206
204
@@ -227,7 +225,7 @@ export class Feedback implements Integration {
227
225
/**
228
226
* Creates a new widget. Accepts partial options to override any options passed to constructor.
229
227
*/
230
- public createWidget ( optionOverrides : Partial < FeedbackConfigurationWithDefaults > ) : Widget | null {
228
+ public createWidget ( optionOverrides : CreateWidgetOptionOverrides ) : Widget | null {
231
229
try {
232
230
return this . _createWidget ( Object . assign ( { } , this . options , optionOverrides ) ) ;
233
231
} catch ( err ) {
0 commit comments