@@ -15,7 +15,7 @@ import {
1515 SUBMIT_BUTTON_LABEL ,
1616 SUCCESS_MESSAGE_TEXT ,
1717} from './constants' ;
18- import type { FeedbackConfigurationWithDefaults , Widget } from './types' ;
18+ import type { CreateWidgetOptionOverrides , FeedbackConfigurationWithDefaults , Widget } from './types' ;
1919import { createActorStyles } from './widget/Actor.css' ;
2020import { createShadowHost } from './widget/createShadowHost' ;
2121import { createWidget } from './widget/createWidget' ;
@@ -84,7 +84,6 @@ export class Feedback implements Integration {
8484
8585 public constructor ( {
8686 id = 'sentry-feedback' ,
87- // attachTo = null,
8887 autoInject = true ,
8988 showEmail = true ,
9089 showName = true ,
@@ -130,7 +129,6 @@ export class Feedback implements Integration {
130129
131130 this . options = {
132131 id,
133- // attachTo,
134132 autoInject,
135133 isAnonymous,
136134 isEmailRequired,
@@ -200,7 +198,7 @@ export class Feedback implements Integration {
200198 /**
201199 * Adds click listener to attached element to open a feedback dialog
202200 */
203- public attachTo ( el : Node | string , optionOverrides : Partial < FeedbackConfigurationWithDefaults > ) : Widget | null {
201+ public attachTo ( el : Node | string , optionOverrides : CreateWidgetOptionOverrides ) : Widget | null {
204202 try {
205203 const options = Object . assign ( { } , this . options , optionOverrides ) ;
206204
@@ -227,7 +225,7 @@ export class Feedback implements Integration {
227225 /**
228226 * Creates a new widget. Accepts partial options to override any options passed to constructor.
229227 */
230- public createWidget ( optionOverrides : Partial < FeedbackConfigurationWithDefaults > ) : Widget | null {
228+ public createWidget ( optionOverrides : CreateWidgetOptionOverrides ) : Widget | null {
231229 try {
232230 return this . _createWidget ( Object . assign ( { } , this . options , optionOverrides ) ) ;
233231 } catch ( err ) {
0 commit comments