File tree Expand file tree Collapse file tree
packages/react-native-audio-api/src/system/notification Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { AudioEventEmitter , AudioEventSubscription } from '../../events' ;
22import { NativeAudioAPIModule } from '../../specs' ;
33import type {
4- NotificationEvents ,
4+ NotificationCallback ,
55 NotificationManager ,
66 PlaybackControlName ,
77 PlaybackNotificationEventName ,
@@ -113,7 +113,7 @@ class PlaybackNotificationManager
113113 */
114114 addEventListener < T extends PlaybackNotificationEventName > (
115115 eventName : T ,
116- callback : ( event : NotificationEvents [ T ] ) => void
116+ callback : NotificationCallback < T >
117117 ) : AudioEventSubscription {
118118 return this . audioEventEmitter . addAudioEventListener ( eventName , callback ) ;
119119 }
Original file line number Diff line number Diff line change 11import { AudioEventEmitter , AudioEventSubscription } from '../../events' ;
22import { NativeAudioAPIModule } from '../../specs' ;
33import type {
4- RecordingNotificationEvent ,
4+ NotificationCallback ,
55 NotificationManager ,
66 RecordingNotificationEventName ,
77 RecordingNotificationInfo ,
88} from './types' ;
9-
109import { AudioApiError } from '../../errors' ;
1110
1211class RecordingNotificationManager
@@ -88,7 +87,7 @@ class RecordingNotificationManager
8887 */
8988 addEventListener < T extends RecordingNotificationEventName > (
9089 eventName : T ,
91- callback : ( event : RecordingNotificationEvent [ T ] ) => void
90+ callback : NotificationCallback < T >
9291 ) : AudioEventSubscription {
9392 return this . audioEventEmitter . addAudioEventListener ( eventName , callback ) ;
9493 }
You can’t perform that action at this time.
0 commit comments