@@ -131,7 +131,7 @@ const MainScreen = () => {
131131 // const oldForm = Shake.getShakeForm();
132132 // oldForm.components = oldForm.components.filter(c => c.type !== 'inspect');
133133
134- const pickerItems : Array < ShakePickerItem > = [
134+ const pickerItems : ShakePickerItem [ ] = [
135135 new ShakePickerItem ( 'Mouse' , 'Mouse' , null , 'mouse' ) ,
136136 new ShakePickerItem ( 'Keyboard' , 'Keyboard' , null , 'keyboard' ) ,
137137 new ShakePickerItem ( 'Display' , 'Display' , null , 'display' ) ,
@@ -206,22 +206,28 @@ const MainScreen = () => {
206206 } ;
207207
208208 const setNotificationEventsFilter = ( ) => {
209- Shake . setNotificationEventsFilter ( ( notificationEvent ) => {
210- notificationEvent . setDescription ( 'data_redacted' ) ;
211- notificationEvent . setTitle ( 'data_redacted' ) ;
212-
213- return notificationEvent ;
214- } ) ;
209+ Shake . setNotificationEventsFilter (
210+ (
211+ notificationEvent : NotificationEventBuilder
212+ ) : NotificationEventBuilder | null => {
213+ notificationEvent . setDescription ( 'data_redacted' ) ;
214+ notificationEvent . setTitle ( 'data_redacted' ) ;
215+
216+ return notificationEvent ;
217+ }
218+ ) ;
215219 } ;
216220
217221 const setNetworkRequestsFilter = ( ) => {
218- Shake . setNetworkRequestsFilter ( ( networkRequest ) => {
219- networkRequest . setResponseBody ( 'data_redacted' ) ;
220- networkRequest . setRequestBody ( 'data_redacted' ) ;
221- networkRequest . setDate ( new Date ( ) ) ;
222-
223- return networkRequest ;
224- } ) ;
222+ Shake . setNetworkRequestsFilter (
223+ ( networkRequest : NetworkRequestBuilder ) : NetworkRequestBuilder | null => {
224+ networkRequest . setResponseBody ( 'data_redacted' ) ;
225+ networkRequest . setRequestBody ( 'data_redacted' ) ;
226+ networkRequest . setDate ( new Date ( ) ) ;
227+
228+ return networkRequest ;
229+ }
230+ ) ;
225231 } ;
226232
227233 const showNotificationsSettings = ( ) => {
0 commit comments