@@ -203,7 +203,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
203
203
) ;
204
204
205
205
const markNotificationRead = useCallback (
206
- async ( accounts , id , hostname ) => {
206
+ async ( accounts : AuthState , id : string , hostname : string ) => {
207
207
setIsFetching ( true ) ;
208
208
209
209
const isEnterprise = isEnterpriseHost ( hostname ) ;
@@ -236,7 +236,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
236
236
) ;
237
237
238
238
const markNotificationDone = useCallback (
239
- async ( accounts , id , hostname ) => {
239
+ async ( accounts : AuthState , id : string , hostname : string ) => {
240
240
setIsFetching ( true ) ;
241
241
242
242
const isEnterprise = isEnterpriseHost ( hostname ) ;
@@ -269,7 +269,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
269
269
) ;
270
270
271
271
const unsubscribeNotification = useCallback (
272
- async ( accounts , id , hostname ) => {
272
+ async ( accounts : AuthState , id : string , hostname : string ) => {
273
273
setIsFetching ( true ) ;
274
274
275
275
const isEnterprise = isEnterpriseHost ( hostname ) ;
@@ -295,7 +295,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
295
295
) ;
296
296
297
297
const markRepoNotifications = useCallback (
298
- async ( accounts , repoSlug , hostname ) => {
298
+ async ( accounts : AuthState , repoSlug : string , hostname : string ) => {
299
299
setIsFetching ( true ) ;
300
300
301
301
const isEnterprise = isEnterpriseHost ( hostname ) ;
@@ -328,7 +328,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
328
328
) ;
329
329
330
330
const markRepoNotificationsDone = useCallback (
331
- async ( accounts , repoSlug , hostname ) => {
331
+ async ( accounts : AuthState , repoSlug : string , hostname : string ) => {
332
332
setIsFetching ( true ) ;
333
333
334
334
try {
@@ -371,7 +371,7 @@ export const useNotifications = (colors: boolean): NotificationsState => {
371
371
) ;
372
372
373
373
const removeNotificationFromState = useCallback (
374
- ( id , hostname ) => {
374
+ ( id : string , hostname : string ) => {
375
375
const updatedNotifications = removeNotification (
376
376
id ,
377
377
notifications ,
0 commit comments